import { defineComponent as ae, onMounted as ge, ref as L, watch as se, resolveComponent as F, openBlock as y, createBlock as A, mergeProps as E, withCtx as x, createVNode as _, renderSlot as X, createElementBlock as W, Fragment as oe, renderList as Se, createTextVNode as Fe, toDisplayString as fe, useSlots as Ie, computed as j, unref as te, createCommentVNode as D, createElementVNode as Ee, normalizeStyle as so, createSlots as xe, getCurrentInstance as pt, inject as Sn, h as je, nextTick as mt, isVNode as co, toRefs as fo, Teleport as da, reactive as vo, createApp as Aa, onUnmounted as po, onBeforeMount as mo, provide as yo, onUpdated as go, onBeforeUnmount as An, readonly as bo, Transition as ho, withDirectives as Ga, vShow as _o, resolveDirective as $o, useCssVars as Co } from "vue";
const Oo = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    name: {
      type: String,
      default: "",
      require: !0
    },
    modelValue: {
      type: String,
      default: "",
      require: !0
    },
    label: {
      type: String,
      default: ""
    },
    placeholder: {
      type: String,
      default: "请输入内容"
    },
    inputAttrs: {
      type: Object,
      default: () => ({})
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    readonly: {
      type: Boolean,
      default: !1
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    rules: {
      type: Array,
      default: () => []
    },
    type: {
      type: String,
      default: "text"
    },
    help: {
      type: String,
      default: ""
    },
    span: {
      type: Number,
      default: 4
    }
  },
  emits: ["update:modelValue", "change", "blur", "clear", "click", "compositionend", "compositionstart", "enter", "focus", "keydown", "keyup", "mouseenter", "mouseleave", "paste", "validate", "wheel"],
  setup(e, { emit: t }) {
    const a = e;
    ge(() => {
      if (!a.name)
        throw new Error("ProFormInput => name is required");
    });
    const r = L(a.modelValue || "");
    se(() => a.modelValue, (C, z) => {
      r.value = C;
    });
    function n(C) {
      t("update:modelValue", C.target.value);
    }
    function o(C) {
      t("change", C);
    }
    function l(C) {
      t("blur", C);
    }
    function u(C) {
      t("click", C);
    }
    function s(C) {
      t("compositionend", C);
    }
    function c(C) {
      t("compositionstart", C);
    }
    function f(C) {
      t("enter", C);
    }
    function p(C) {
      t("focus", C);
    }
    function m(C) {
      t("keydown", C);
    }
    function h(C) {
      t("keyup", C);
    }
    function O(C) {
      t("mouseenter", C);
    }
    function S(C) {
      t("mouseleave", C);
    }
    function w(C) {
      t("paste", C);
    }
    function T(C) {
      t("validate", C);
    }
    function $(C) {
      t("wheel", C);
    }
    return (C, z) => {
      const G = F("t-input"), P = F("t-form-item");
      return y(), A(P, E({
        help: a.help,
        name: e.name,
        label: a.label,
        rules: e.rules
      }, a.formAttrs), {
        default: x(() => [
          _(G, E({
            onClick: u,
            onCompositionend: s,
            onCompositionstart: c,
            onEnter: f,
            onFocus: p,
            onKeydown: m,
            onKeyup: h,
            onMouseenter: O,
            onMouseleave: S,
            onPaste: w,
            onValidate: T,
            onWheel: $,
            onBlur: l,
            type: e.type,
            onChange: o
          }, a.inputAttrs, {
            disabled: a.disabled,
            readonly: a.readonly,
            onInput: n,
            modelValue: r.value,
            "onUpdate:modelValue": z[0] || (z[0] = (q) => r.value = q),
            placeholder: a.placeholder
          }), {
            "prefix-icon": x(() => [
              X(C.$slots, "prefix-icon")
            ]),
            _: 3
          }, 16, ["type", "disabled", "readonly", "modelValue", "placeholder"])
        ]),
        _: 3
      }, 16, ["help", "name", "label", "rules"]);
    };
  }
}), So = {
  install(e) {
    e.component("ProFormInput", Oo);
  }
}, Ao = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    name: {
      type: String,
      default: "",
      require: !0
    },
    list: {
      type: Array,
      default: []
    },
    modelValue: {
      type: [String, Number, Array],
      default: "",
      require: !0
    },
    label: {
      type: String,
      default: ""
    },
    rules: {
      type: Array,
      default: []
    },
    keyName: {
      type: String,
      default: ""
    },
    valueName: {
      type: String,
      default: ""
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    placeholder: {
      type: String,
      default: ""
    },
    readonly: {
      type: Boolean,
      default: !1
    },
    multiple: {
      type: Boolean,
      default: !1
    },
    help: {
      type: String,
      default: ""
    },
    width: {
      type: String,
      default: ""
    },
    api: {
      type: Function
    }
  },
  emits: ["update:modelValue", "change"],
  setup(e, { emit: t }) {
    const a = e, r = a.keyName || "label", n = a.valueName || "value", o = L([]), l = L(a.modelValue);
    function u(s) {
      if (o.value.length)
        if (t("update:modelValue", s), !a.multiple)
          t("change", { label: o.value.find((c) => c[n] == s)[r], value: s });
        else {
          const c = o.value.filter((f) => s.includes(f.value));
          t("change", c);
        }
    }
    return se(() => a.modelValue, (s) => l.value = s), ge(() => {
      if (!a.name)
        throw new Error("ProFormSelect => name is required");
      a.api ? a.api().then((s) => {
        o.value = s.map((c) => ({ label: c[r], value: c[n] }));
      }) : a.list.length && (o.value = a.list.map((s) => ({ label: s[r], value: s[n], disabled: s.disabled })));
    }), (s, c) => {
      const f = F("t-select"), p = F("t-form-item");
      return y(), A(p, E({
        help: a.help,
        name: a.name
      }, a.formAttrs, {
        label: a.label,
        rules: a.rules
      }), {
        default: x(() => [
          _(f, E({
            style: { width: a.width }
          }, s.$attrs, {
            multiple: e.multiple,
            disabled: e.disabled,
            readonly: a.readonly,
            onChange: u,
            modelValue: l.value,
            "onUpdate:modelValue": c[0] || (c[0] = (m) => l.value = m),
            placeholder: a.placeholder || "请选择",
            options: o.value
          }), null, 16, ["style", "multiple", "disabled", "readonly", "modelValue", "placeholder", "options"])
        ]),
        _: 1
      }, 16, ["help", "name", "label", "rules"]);
    };
  }
}), wo = {
  install(e) {
    e.component("ProFormSelect", Ao);
  }
}, ko = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    name: {
      type: String,
      default: ""
    },
    list: {
      type: Array,
      default: []
    },
    modelValue: {
      type: [String, Object],
      default: ""
    },
    label: {
      type: String,
      default: ""
    },
    rules: {
      type: Array,
      default: []
    },
    keyName: {
      type: String,
      default: ""
    },
    valueName: {
      type: String,
      default: ""
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    help: {
      type: String,
      default: ""
    },
    readonly: {
      type: Boolean,
      default: !1
    },
    api: {
      type: Function
    }
  },
  emits: ["update:modelValue", "change"],
  setup(e, { emit: t }) {
    const a = e, r = a.keyName || "label", n = a.valueName || "value";
    ge(() => {
      if (!a.name)
        throw new Error();
      a.api ? a.api().then((s) => {
        l.value = s.map((c) => ({ label: c[r], value: c[n] }));
      }) : a.list.length && (l.value = a.list.map((s) => ({ label: s[r], value: s[n], disabled: s.disabled })));
    });
    const o = L(a.modelValue || []), l = L([]);
    se(() => a.modelValue, (s) => {
      o.value = s;
    });
    function u(s) {
      t("update:modelValue", s), t("change", s);
    }
    return (s, c) => {
      const f = F("t-checkbox-group"), p = F("t-form-item");
      return y(), A(p, E(a.formAttrs, {
        label: a.label,
        help: a.help,
        rules: a.rules,
        name: a.name
      }), {
        default: x(() => [
          _(f, E({
            readonly: a.readonly,
            disabled: a.disabled
          }, s.$attrs, {
            modelValue: o.value,
            "onUpdate:modelValue": c[0] || (c[0] = (m) => o.value = m),
            options: l.value,
            onChange: u
          }), null, 16, ["readonly", "disabled", "modelValue", "options"])
        ]),
        _: 1
      }, 16, ["label", "help", "rules", "name"]);
    };
  }
}), Eo = {
  install(e) {
    e.component("ProFormCheckbox", ko);
  }
}, xo = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    name: {
      type: String,
      default: "",
      require: !0
    },
    list: {
      type: Array,
      default: []
    },
    modelValue: {
      type: Object,
      default: "",
      require: !0
    },
    label: {
      type: String,
      default: ""
    },
    rules: {
      type: Array,
      default: []
    },
    keyName: {
      type: String,
      default: ""
    },
    valueName: {
      type: String,
      default: ""
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    button: {
      type: Boolean,
      default: !1
    },
    allowUncheck: {
      type: Boolean,
      default: !1
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    help: {
      type: String,
      default: ""
    },
    api: {
      type: Function
    }
  },
  emits: ["update:modelValue", "change"],
  setup(e, { emit: t }) {
    const a = e, r = a.keyName || "label", n = a.valueName || "value";
    ge(() => {
      if (!a.name)
        throw new Error();
      a.api ? a.api().then((s) => {
        l.value = s.map((c) => ({ label: c[r], value: c[n] }));
      }) : a.list.length && (l.value = a.list.map((s) => ({ label: s[r], value: s[n], disabled: s.disabled }))), o.value = [void 0, null].includes(a.modelValue) ? void 0 : a.modelValue;
    });
    const o = L(), l = L([]);
    se(() => a.modelValue, (s) => {
      o.value = s;
    });
    function u(s) {
      t("update:modelValue", s), t("change", s);
    }
    return (s, c) => {
      const f = F("t-radio-group"), p = F("t-radio-button"), m = F("t-form-item");
      return y(), A(m, E(a.formAttrs, {
        help: a.help,
        label: a.label,
        rules: a.rules,
        name: a.name
      }), {
        default: x(() => [
          a.button ? (y(), A(f, E({ key: 1 }, s.$attrs, {
            disabled: a.disabled,
            "allow-uncheck": a.allowUncheck,
            modelValue: o.value,
            "onUpdate:modelValue": c[1] || (c[1] = (h) => o.value = h),
            onChange: u
          }), {
            default: x(() => [
              (y(!0), W(oe, null, Se(l.value, (h, O) => (y(), A(p, {
                value: h.value
              }, {
                default: x(() => [
                  Fe(fe(h.label), 1)
                ]),
                _: 2
              }, 1032, ["value"]))), 256))
            ]),
            _: 1
          }, 16, ["disabled", "allow-uncheck", "modelValue"])) : (y(), A(f, E({ key: 0 }, s.$attrs, {
            disabled: a.disabled,
            modelValue: o.value,
            "onUpdate:modelValue": c[0] || (c[0] = (h) => o.value = h),
            "allow-uncheck": "",
            name: a.name,
            options: l.value,
            onChange: u
          }), null, 16, ["disabled", "modelValue", "name", "options"]))
        ]),
        _: 1
      }, 16, ["help", "label", "rules", "name"]);
    };
  }
}), To = {
  install(e) {
    e.component("ProFormRadio", xo);
  }
}, Po = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    name: {
      type: String,
      default: "",
      require: !0
    },
    modelValue: {
      type: String,
      default: "",
      require: !0
    },
    label: {
      type: String,
      default: ""
    },
    placeholder: {
      type: String,
      default: "请输入内容"
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    readonly: {
      type: Boolean,
      default: !1
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    rules: {
      type: Array,
      default: []
    },
    help: {
      type: String,
      default: ""
    }
  },
  emits: ["update:modelValue", "blur", "change", "focus", "keydown", "keypress", "keyup"],
  setup(e, { emit: t }) {
    const a = e, r = L(a.modelValue);
    se(() => a.modelValue, (o) => {
      r.value = o;
    });
    function n(o, l) {
      t("update:modelValue", o), t("change", { value: o, context: l });
    }
    return (o, l) => {
      const u = F("t-textarea"), s = F("t-form-item");
      return y(), A(s, E({
        help: a.help
      }, a.formAttrs, {
        rules: a.rules,
        name: e.name,
        label: e.label
      }), {
        default: x(() => [
          _(u, E({
            onChange: n,
            onBlur: l[0] || (l[0] = (c, f) => t("blur", { value: c, context: f })),
            onFocus: l[1] || (l[1] = (c, f) => t("focus", { value: c, context: f })),
            onKeydown: l[2] || (l[2] = (c, f) => t("keydown", { value: c, context: f })),
            onKeypress: l[3] || (l[3] = (c, f) => t("keypress", { value: c, context: f })),
            onKeyup: l[4] || (l[4] = (c, f) => t("keyup", { value: c, context: f })),
            disabled: a.disabled,
            readonly: a.readonly
          }, o.$attrs, {
            modelValue: r.value,
            "onUpdate:modelValue": l[5] || (l[5] = (c) => r.value = c),
            placeholder: "请输入内容"
          }), null, 16, ["disabled", "readonly", "modelValue"])
        ]),
        _: 1
      }, 16, ["help", "rules", "name", "label"]);
    };
  }
}), Fo = {
  install(e) {
    e.component("ProFormTextarea", Po);
  }
}, Do = { class: "pro-table h-full" }, Bo = {
  key: 1,
  class: "pro-table-form",
  style: { "margin-bottom": "24px" }
}, Io = { class: "flex items-center" }, jo = {
  key: 2,
  style: { "margin-bottom": "24px" }
}, Mo = { class: "pro-table-table" }, No = {
  key: 0,
  style: { "margin-top": "26px", padding: "30px 23px", "box-sizing": "border-box" }
}, Vo = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    request: {},
    options: {},
    page: { default: () => ({
      pageNum: 1,
      pageSize: 10,
      total: 0
    }) },
    selectData: { default: () => [] },
    empty: { default: "暂无数据" },
    fixedRows: {},
    hover: { type: Boolean, default: !0 },
    size: { default: "medium" },
    stripe: { type: Boolean, default: !1 },
    cellEmptyContent: { default: "-" },
    rowKey: { default: "id" },
    loadingProps: { default: () => ({}) },
    selectRow: { type: Boolean, default: !1 },
    loading: { type: Boolean, default: !0 },
    formAttrs: { default: () => ({}) },
    tableAttrs: { default: () => ({
      rowKey: "id"
    }) },
    pageAttrs: { default: () => ({}) },
    searchText: { default: "搜索" },
    cancelText: { default: "重置" },
    hideForm: { type: Boolean, default: !1 },
    hidePage: { type: Boolean, default: !1 },
    totalContent: { type: Boolean, default: !1 },
    showSearchNum: { default: 3 },
    moreSearchText: {}
  },
  emits: ["reset", "reload", "update:selectData", "select-change"],
  setup(e, { expose: t, emit: a }) {
    const r = e, n = L(), o = L(), l = L([]), u = L([]), s = L(), c = L(!1), f = L(), p = L(!1), m = L({
      pageNum: 1,
      pageSize: 10,
      total: 0
    }), h = L(), O = L({});
    let S = {};
    r.options.forEach((B) => {
      S[B.key] = "";
    }), n.value = S, ge(() => {
      w(), r.page && (m.value = r.page), $(1, m.value.pageSize);
    });
    function w() {
      l.value = r.options.filter((B, V) => (B.tableOrder = B.tableOrder || V, !B.hideInTable)).sort((B, V) => B.tableOrder - V.tableOrder).map((B) => ({
        ...B,
        colKey: B.key
      })), r.selectRow && l.value.unshift({
        colKey: "row-select",
        type: "multiple"
      }), o.value = r.options.filter((B, V) => (B.searchOrder = B.searchOrder || V, !B.hideInSearch)).sort((B, V) => B.searchOrder - V.searchOrder), s.value = r.options.filter((B) => B.isSlot).map((B) => B.key);
    }
    se(() => r.options, () => {
      w();
    }, { deep: !0 });
    const T = Ie();
    function $(B, V) {
      r.loading && (p.value = !0), r.request({
        pageNum: m.value.pageNum,
        pageSize: V,
        form: n.value,
        sort: O.value
      }).then((d) => {
        p.value = !1, u.value = d.list, m.value = {
          total: d.total,
          pageNum: B,
          pageSize: V
        };
      }).catch(() => {
        p.value = !1;
      });
    }
    function C(B) {
      if (!r.rowKey)
        throw new Error("rowKey is undefined");
      a("update:selectData", B), a("select-change", B);
    }
    function z() {
      $(m.value.pageNum, m.value.pageSize);
    }
    function G() {
      h.value.reset(), m.value.pageNum = 1, $(1, m.value.pageSize);
    }
    function P() {
      return f;
    }
    function q() {
      return n.value;
    }
    t({
      reset: z,
      reload: G,
      getTdTableRef: P,
      getSearchParam: q
    });
    function Y() {
      r.loading && (p.value = !0), m.value.pageNum = 1, r.request({
        ...m.value,
        form: n.value,
        sort: O.value
      }).then((B) => {
        u.value = B.list, m.value.total = B.total, p.value = !1;
      }).catch(() => {
        p.value = !1;
      });
    }
    function H() {
      h.value.reset(), a("reset"), r.loading && (p.value = !0), r.request({
        ...m.value,
        form: n.value,
        sort: O.value
      }).then((B) => {
        u.value = B.list, m.value.total = B.total, p.value = !1;
      }).catch(() => {
        p.value = !1;
      });
    }
    function I(B, { col: V }) {
      const { key: d } = V;
      let g = { ...O.value };
      B === void 0 && g[d] ? delete g[d] : B !== void 0 && (g[d] = B.descending ? "desc" : "asc"), O.value = g, $(m.value.pageNum, m.value.pageSize);
    }
    function N(B) {
      m.value.pageNum = B.current || 1, m.value.pageSize = B.pageSize, $(m.value.pageNum, m.value.pageSize);
    }
    const ye = j(() => r.selectData);
    return (B, V) => {
      const d = F("ProFormInput"), g = F("t-col"), b = F("ProFormSelect"), k = F("ProFormDatepicker"), U = F("ProFormCheckbox"), R = F("ProFormRadio"), J = F("ProFormSelectTree"), i = F("t-icon"), M = F("t-button"), ue = F("t-row"), pe = F("t-form"), be = F("t-table"), he = F("t-loading"), ke = F("t-pagination");
      return y(), W("div", Do, [
        te(T)["form-header"] ? X(B.$slots, "form-header", { key: 0 }) : D("", !0),
        !r.hideForm && o.value && o.value.length != 0 ? (y(), W("div", Bo, [
          _(pe, E({
            ref_key: "formRef",
            ref: h
          }, r.formAttrs, {
            labelWidth: "auto",
            labelAlign: "left",
            data: n.value
          }), {
            default: x(() => [
              _(ue, { gutter: [16, 18] }, {
                default: x(() => [
                  (y(!0), W(oe, null, Se(o.value, (v, de) => (y(), W(oe, { key: de }, [
                    de <= r.showSearchNum - 1 ? (y(), W(oe, { key: 0 }, [
                      v.isFormSlot && !v.hideInSearch ? X(B.$slots, `form-${v.key}`, { key: 0 }) : (y(), W(oe, { key: 1 }, [
                        !v.type || v.type === "input" ? (y(), A(g, {
                          key: 0,
                          "h-full": "",
                          span: v.span || 3
                        }, {
                          default: x(() => [
                            _(d, E(v.inputAttrs, {
                              placeholder: v.placeholder || `请输入${v.title}`,
                              type: "text",
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["placeholder", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        v.type === "select" ? (y(), A(g, {
                          key: 1,
                          span: v.span || 3
                        }, {
                          default: x(() => [
                            _(b, E(v.selectAttrs, {
                              multiple: v.multiple,
                              keyName: v.keyName || "label",
                              valueName: v.valueName || "value",
                              api: v.request,
                              placeholder: v.placeholder || `请选择${v.title}`,
                              list: v.data || [],
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["multiple", "keyName", "valueName", "api", "placeholder", "list", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        ["date", "dateRange"].includes(v.type) ? (y(), A(g, {
                          key: 2,
                          span: v.span || 3
                        }, {
                          default: x(() => [
                            _(k, E(v.datePickerAttrs, {
                              range: v.type == "dateRange",
                              list: v.data || [],
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["range", "list", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        v.type === "checkbox" ? (y(), A(g, {
                          key: 3,
                          span: v.span || 24
                        }, {
                          default: x(() => [
                            _(U, E(v.checkBoxAttrs, {
                              api: v.request,
                              list: v.data || [],
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["api", "list", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        v.type === "radio" ? (y(), A(g, {
                          key: 4,
                          span: v.span || 24
                        }, {
                          default: x(() => [
                            _(R, E(v.radioAttrs, {
                              api: v.request,
                              list: v.data || [],
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["api", "list", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        v.type == "selectTree" ? (y(), A(g, {
                          key: 5,
                          span: v.span || 3
                        }, {
                          default: x(() => [
                            _(J, E(v.selectTreeAttrs, {
                              keyName: v.keyName || "label",
                              valueName: v.valueName || "value",
                              list: v.data,
                              placeholder: v.placeholder || `请选择${v.title}`,
                              api: v.request,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              modelModifiers: { trim: !0 },
                              name: v.key,
                              label: v.title,
                              multiple: v.multiple
                            }), null, 16, ["keyName", "valueName", "list", "placeholder", "api", "modelValue", "onUpdate:modelValue", "name", "label", "multiple"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0)
                      ], 64))
                    ], 64)) : c.value ? (y(), W(oe, { key: 1 }, [
                      v.isFormSlot && !v.hideInSearch ? X(B.$slots, `form-${v.key}`, { key: 0 }) : (y(), W(oe, { key: 1 }, [
                        !v.type || v.type === "input" ? (y(), A(g, {
                          key: 0,
                          span: v.span || 3
                        }, {
                          default: x(() => [
                            _(d, E(v.inputAttrs, {
                              placeholder: v.placeholder || `请输入${v.title}`,
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["placeholder", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        v.type === "select" ? (y(), A(g, {
                          key: 1,
                          span: v.span || 3
                        }, {
                          default: x(() => [
                            _(b, E(v.selectAttrs, {
                              multiple: v.multiple,
                              keyName: v.keyName || "label",
                              valueName: v.valueName || "value",
                              api: v.request,
                              placeholder: v.placeholder || `请选择${v.title}`,
                              list: v.data || [],
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["multiple", "keyName", "valueName", "api", "placeholder", "list", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        ["date", "dateRange"].includes(v.type) ? (y(), A(g, {
                          key: 2,
                          span: v.span || 3
                        }, {
                          default: x(() => [
                            _(k, E(v.datePickerAttrs, {
                              range: v.type == "dateRange",
                              list: v.data || [],
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["range", "list", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        v.type === "checkbox" ? (y(), A(g, {
                          key: 3,
                          span: v.span || 24
                        }, {
                          default: x(() => [
                            _(U, E(v.checkBoxAttrs, {
                              api: v.request,
                              list: v.data || [],
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["api", "list", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        v.type === "radio" ? (y(), A(g, {
                          key: 4,
                          span: v.span || 24
                        }, {
                          default: x(() => [
                            _(R, E(v.radioAttrs, {
                              api: v.request,
                              list: v.data || [],
                              name: v.key,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              label: v.title
                            }), null, 16, ["api", "list", "name", "modelValue", "onUpdate:modelValue", "label"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0),
                        v.type == "selectTree" ? (y(), A(g, {
                          key: 5,
                          span: v.span || 3
                        }, {
                          default: x(() => [
                            _(J, E(v.selectTreeAttrs, {
                              keyName: v.keyName || "label",
                              valueName: v.valueName || "value",
                              list: v.data,
                              placeholder: v.placeholder || `请选择${v.title}`,
                              api: v.request,
                              modelValue: n.value[v.key],
                              "onUpdate:modelValue": (Z) => n.value[v.key] = Z,
                              modelModifiers: { trim: !0 },
                              name: v.key,
                              label: v.title,
                              multiple: v.multiple
                            }), null, 16, ["keyName", "valueName", "list", "placeholder", "api", "modelValue", "onUpdate:modelValue", "name", "label", "multiple"])
                          ]),
                          _: 2
                        }, 1032, ["span"])) : D("", !0)
                      ], 64))
                    ], 64)) : D("", !0)
                  ], 64))), 128)),
                  _(g, {
                    span: r.searchSpan
                  }, {
                    default: x(() => [
                      Ee("div", {
                        style: so(r.searchStyle),
                        class: "flex text-right"
                      }, [
                        _(M, {
                          style: { "margin-right": "16px" },
                          onClick: Y
                        }, {
                          default: x(() => [
                            r.searchIcon ? (y(), A(i, {
                              key: 0,
                              name: r.searchIcon
                            }, null, 8, ["name"])) : D("", !0),
                            Fe(" " + fe(r.searchText || "搜索"), 1)
                          ]),
                          _: 1
                        }),
                        _(M, {
                          theme: "default",
                          variant: "base",
                          type: "reset",
                          onClick: H
                        }, {
                          default: x(() => [
                            r.resetIcon ? (y(), A(i, {
                              key: 0,
                              name: r.resetIcon
                            }, null, 8, ["name"])) : D("", !0),
                            Fe(" " + fe(r.cancelText || "重置"), 1)
                          ]),
                          _: 1
                        }),
                        o.value && o.value.length > r.showSearchNum ? (y(), A(M, {
                          key: 0,
                          theme: "primary",
                          class: "ml-[16px]",
                          variant: "text",
                          onClick: V[0] || (V[0] = (v) => c.value = !c.value)
                        }, {
                          default: x(() => [
                            Ee("div", Io, [
                              r.moreSearchText ? (y(), W(oe, { key: 1 }, [
                                Fe(fe(r.moreSearchText), 1)
                              ], 64)) : (y(), W(oe, { key: 0 }, [
                                Fe(fe(c.value ? "收起" : "展开"), 1)
                              ], 64)),
                              _(i, {
                                class: "ml-2",
                                name: c.value ? "chevron-up" : "chevron-down"
                              }, null, 8, ["name"])
                            ])
                          ]),
                          _: 1
                        })) : D("", !0)
                      ], 4)
                    ]),
                    _: 1
                  }, 8, ["span"])
                ]),
                _: 3
              })
            ]),
            _: 3
          }, 16, ["data"])
        ])) : D("", !0),
        te(T).setting ? (y(), W("div", jo, [
          X(B.$slots, "setting")
        ])) : D("", !0),
        Ee("div", Mo, [
          Ee("div", null, [
            te(T).card ? (y(), A(he, E({
              key: 1,
              size: r.loadingProps.size,
              loading: p.value
            }, r.loadingProps, {
              "show-overlay": r.loadingProps.showOverlay
            }), {
              default: x(() => [
                X(B.$slots, "card", { list: u.value })
              ]),
              _: 3
            }, 16, ["size", "loading", "show-overlay"])) : (y(), A(be, E({
              key: 0,
              onSortChange: I,
              loading: p.value,
              ref_key: "tdTableRef",
              ref: f,
              bordered: r.bordered,
              empty: r.empty,
              cellEmptyContent: r.cellEmptyContent
            }, r.tableAttrs, {
              onSelectChange: C,
              "row-key": r.rowKey,
              data: u.value,
              columns: l.value,
              size: r.size,
              "selected-row-keys": ye.value,
              stripe: r.stripe,
              hover: r.hover
            }), xe({ _: 2 }, [
              Se(s.value, (v) => ({
                name: v,
                fn: x(({ row: de, rowIndex: Z }) => [
                  X(B.$slots, `table-${v}`, {
                    key: de[B.rowKey],
                    row: de,
                    index: Z
                  })
                ])
              })),
              te(T).expandedRow ? {
                name: "expandedRow",
                fn: x(({ row: v }) => [
                  X(B.$slots, "expandedRow", { row: v })
                ]),
                key: "0"
              } : void 0
            ]), 1040, ["loading", "bordered", "empty", "cellEmptyContent", "row-key", "data", "columns", "size", "selected-row-keys", "stripe", "hover"]))
          ]),
          r.hidePage ? D("", !0) : (y(), W("div", No, [
            _(ke, E(r.pageAttrs, {
              total: m.value.total,
              current: m.value.pageNum,
              "onUpdate:current": V[1] || (V[1] = (v) => m.value.pageNum = v),
              onChange: N,
              "page-size": m.value.pageSize,
              "onUpdate:pageSize": V[2] || (V[2] = (v) => m.value.pageSize = v),
              "show-first-and-last-page-btn": ""
            }), null, 16, ["total", "current", "page-size"])
          ]))
        ])
      ]);
    };
  }
});
const Lo = {
  install(e) {
    e.component("ProTable", Vo);
  }
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function fa(e, t) {
  (t == null || t > e.length) && (t = e.length);
  for (var a = 0, r = new Array(t); a < t; a++)
    r[a] = e[a];
  return r;
}
function wn(e, t) {
  if (e) {
    if (typeof e == "string")
      return fa(e, t);
    var a = Object.prototype.toString.call(e).slice(8, -1);
    if (a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set")
      return Array.from(e);
    if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))
      return fa(e, t);
  }
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Uo(e) {
  if (Array.isArray(e))
    return fa(e);
}
function Ro(e) {
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
    return Array.from(e);
}
function zo() {
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function kn(e) {
  return Uo(e) || Ro(e) || wn(e) || zo();
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function ce(e) {
  "@babel/helpers - typeof";
  return ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
    return typeof t;
  } : function(t) {
    return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
  }, ce(e);
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Ko(e, t) {
  if (ce(e) != "object" || !e)
    return e;
  var a = e[Symbol.toPrimitive];
  if (a !== void 0) {
    var r = a.call(e, t || "default");
    if (ce(r) != "object")
      return r;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (t === "string" ? String : Number)(e);
}
function En(e) {
  var t = Ko(e, "string");
  return ce(t) == "symbol" ? t : String(t);
}
function re(e, t, a) {
  return t = En(t), t in e ? Object.defineProperty(e, t, {
    value: a,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[t] = a, e;
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var De = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Ho(e) {
  var t = ce(e);
  return e != null && (t == "object" || t == "function");
}
var ve = Ho;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var qo = ce(De) == "object" && De && De.Object === Object && De, xn = qo, Go = xn, Yo = (typeof self > "u" ? "undefined" : ce(self)) == "object" && self && self.Object === Object && self, Wo = Go || Yo || Function("return this")(), we = Wo, Zo = we, Xo = Zo.Symbol, Xe = Xo, Ya = Xe, Tn = Object.prototype, Jo = Tn.hasOwnProperty, Qo = Tn.toString, ut = Ya ? Ya.toStringTag : void 0;
function eu(e) {
  var t = Jo.call(e, ut), a = e[ut];
  try {
    e[ut] = void 0;
    var r = !0;
  } catch {
  }
  var n = Qo.call(e);
  return r && (t ? e[ut] = a : delete e[ut]), n;
}
var tu = eu, au = Object.prototype, ru = au.toString;
function nu(e) {
  return ru.call(e);
}
var lu = nu, Wa = Xe, ou = tu, uu = lu, iu = "[object Null]", su = "[object Undefined]", Za = Wa ? Wa.toStringTag : void 0;
function cu(e) {
  return e == null ? e === void 0 ? su : iu : Za && Za in Object(e) ? ou(e) : uu(e);
}
var Me = cu;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var du = Me, fu = ve, vu = "[object AsyncFunction]", pu = "[object Function]", mu = "[object GeneratorFunction]", yu = "[object Proxy]";
function gu(e) {
  if (!fu(e))
    return !1;
  var t = du(e);
  return t == pu || t == mu || t == vu || t == yu;
}
var Ae = gu;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var bu = we, hu = bu["__core-js_shared__"], _u = hu, ra = _u, Xa = function() {
  var e = /[^.]+$/.exec(ra && ra.keys && ra.keys.IE_PROTO || "");
  return e ? "Symbol(src)_1." + e : "";
}();
function $u(e) {
  return !!Xa && Xa in e;
}
var Cu = $u, Ou = Function.prototype, Su = Ou.toString;
function Au(e) {
  if (e != null) {
    try {
      return Su.call(e);
    } catch {
    }
    try {
      return e + "";
    } catch {
    }
  }
  return "";
}
var Pn = Au, wu = Ae, ku = Cu, Eu = ve, xu = Pn, Tu = /[\\^$.*+?()[\]{}|]/g, Pu = /^\[object .+?Constructor\]$/, Fu = Function.prototype, Du = Object.prototype, Bu = Fu.toString, Iu = Du.hasOwnProperty, ju = RegExp("^" + Bu.call(Iu).replace(Tu, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
function Mu(e) {
  if (!Eu(e) || ku(e))
    return !1;
  var t = wu(e) ? ju : Pu;
  return t.test(xu(e));
}
var Nu = Mu;
function Vu(e, t) {
  return e == null ? void 0 : e[t];
}
var Lu = Vu, Uu = Nu, Ru = Lu;
function zu(e, t) {
  var a = Ru(e, t);
  return Uu(a) ? a : void 0;
}
var Re = zu, Ku = Re, Hu = we, qu = Ku(Hu, "Map"), wa = qu;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Gu = Re, Yu = function() {
  try {
    var e = Gu(Object, "defineProperty");
    return e({}, "", {}), e;
  } catch {
  }
}(), Fn = Yu;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Wu(e, t) {
  return e === t || e !== e && t !== t;
}
var yt = Wu;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Ja = Fn;
function Zu(e, t, a) {
  t == "__proto__" && Ja ? Ja(e, t, {
    configurable: !0,
    enumerable: !0,
    value: a,
    writable: !0
  }) : e[t] = a;
}
var Nt = Zu, Xu = Nt, Ju = yt, Qu = Object.prototype, ei = Qu.hasOwnProperty;
function ti(e, t, a) {
  var r = e[t];
  (!(ei.call(e, t) && Ju(r, a)) || a === void 0 && !(t in e)) && Xu(e, t, a);
}
var Dn = ti;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function ai() {
  this.__data__ = [], this.size = 0;
}
var ri = ai, ni = yt;
function li(e, t) {
  for (var a = e.length; a--; )
    if (ni(e[a][0], t))
      return a;
  return -1;
}
var Vt = li, oi = Vt, ui = Array.prototype, ii = ui.splice;
function si(e) {
  var t = this.__data__, a = oi(t, e);
  if (a < 0)
    return !1;
  var r = t.length - 1;
  return a == r ? t.pop() : ii.call(t, a, 1), --this.size, !0;
}
var ci = si, di = Vt;
function fi(e) {
  var t = this.__data__, a = di(t, e);
  return a < 0 ? void 0 : t[a][1];
}
var vi = fi, pi = Vt;
function mi(e) {
  return pi(this.__data__, e) > -1;
}
var yi = mi, gi = Vt;
function bi(e, t) {
  var a = this.__data__, r = gi(a, e);
  return r < 0 ? (++this.size, a.push([e, t])) : a[r][1] = t, this;
}
var hi = bi, _i = ri, $i = ci, Ci = vi, Oi = yi, Si = hi;
function Je(e) {
  var t = -1, a = e == null ? 0 : e.length;
  for (this.clear(); ++t < a; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
Je.prototype.clear = _i;
Je.prototype.delete = $i;
Je.prototype.get = Ci;
Je.prototype.has = Oi;
Je.prototype.set = Si;
var Lt = Je, Ai = Re, wi = Ai(Object, "create"), Ut = wi, Qa = Ut;
function ki() {
  this.__data__ = Qa ? Qa(null) : {}, this.size = 0;
}
var Ei = ki;
function xi(e) {
  var t = this.has(e) && delete this.__data__[e];
  return this.size -= t ? 1 : 0, t;
}
var Ti = xi, Pi = Ut, Fi = "__lodash_hash_undefined__", Di = Object.prototype, Bi = Di.hasOwnProperty;
function Ii(e) {
  var t = this.__data__;
  if (Pi) {
    var a = t[e];
    return a === Fi ? void 0 : a;
  }
  return Bi.call(t, e) ? t[e] : void 0;
}
var ji = Ii, Mi = Ut, Ni = Object.prototype, Vi = Ni.hasOwnProperty;
function Li(e) {
  var t = this.__data__;
  return Mi ? t[e] !== void 0 : Vi.call(t, e);
}
var Ui = Li, Ri = Ut, zi = "__lodash_hash_undefined__";
function Ki(e, t) {
  var a = this.__data__;
  return this.size += this.has(e) ? 0 : 1, a[e] = Ri && t === void 0 ? zi : t, this;
}
var Hi = Ki, qi = Ei, Gi = Ti, Yi = ji, Wi = Ui, Zi = Hi;
function Qe(e) {
  var t = -1, a = e == null ? 0 : e.length;
  for (this.clear(); ++t < a; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
Qe.prototype.clear = qi;
Qe.prototype.delete = Gi;
Qe.prototype.get = Yi;
Qe.prototype.has = Wi;
Qe.prototype.set = Zi;
var Xi = Qe, er = Xi, Ji = Lt, Qi = wa;
function es() {
  this.size = 0, this.__data__ = {
    hash: new er(),
    map: new (Qi || Ji)(),
    string: new er()
  };
}
var ts = es;
function as(e) {
  var t = ce(e);
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
var rs = as, ns = rs;
function ls(e, t) {
  var a = e.__data__;
  return ns(t) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
}
var Rt = ls, os = Rt;
function us(e) {
  var t = os(this, e).delete(e);
  return this.size -= t ? 1 : 0, t;
}
var is = us, ss = Rt;
function cs(e) {
  return ss(this, e).get(e);
}
var ds = cs, fs = Rt;
function vs(e) {
  return fs(this, e).has(e);
}
var ps = vs, ms = Rt;
function ys(e, t) {
  var a = ms(this, e), r = a.size;
  return a.set(e, t), this.size += a.size == r ? 0 : 1, this;
}
var gs = ys, bs = ts, hs = is, _s = ds, $s = ps, Cs = gs;
function et(e) {
  var t = -1, a = e == null ? 0 : e.length;
  for (this.clear(); ++t < a; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
et.prototype.clear = bs;
et.prototype.delete = hs;
et.prototype.get = _s;
et.prototype.has = $s;
et.prototype.set = Cs;
var ka = et;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Os(e) {
  return e != null && ce(e) == "object";
}
var Oe = Os;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Ss = Me, As = Oe, ws = "[object Arguments]";
function ks(e) {
  return As(e) && Ss(e) == ws;
}
var Es = ks, tr = Es, xs = Oe, Bn = Object.prototype, Ts = Bn.hasOwnProperty, Ps = Bn.propertyIsEnumerable, Fs = tr(function() {
  return arguments;
}()) ? tr : function(e) {
  return xs(e) && Ts.call(e, "callee") && !Ps.call(e, "callee");
}, gt = Fs;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Ds = Array.isArray, _e = Ds;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Bs = 9007199254740991;
function Is(e) {
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Bs;
}
var Ea = Is, js = Ae, Ms = Ea;
function Ns(e) {
  return e != null && Ms(e.length) && !js(e);
}
var bt = Ns;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Vs(e) {
  return function(t) {
    return e(t);
  };
}
var xa = Vs;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Be = { exports: {} };
function Ls() {
  return !1;
}
var Us = Ls;
(function(e, t) {
  var a = we, r = Us, n = t && !t.nodeType && t, o = n && !0 && e && !e.nodeType && e, l = o && o.exports === n, u = l ? a.Buffer : void 0, s = u ? u.isBuffer : void 0, c = s || r;
  e.exports = c;
})(Be, Be.exports);
Be.exports;
var Rs = Me, zs = Ea, Ks = Oe, Hs = "[object Arguments]", qs = "[object Array]", Gs = "[object Boolean]", Ys = "[object Date]", Ws = "[object Error]", Zs = "[object Function]", Xs = "[object Map]", Js = "[object Number]", Qs = "[object Object]", ec = "[object RegExp]", tc = "[object Set]", ac = "[object String]", rc = "[object WeakMap]", nc = "[object ArrayBuffer]", lc = "[object DataView]", oc = "[object Float32Array]", uc = "[object Float64Array]", ic = "[object Int8Array]", sc = "[object Int16Array]", cc = "[object Int32Array]", dc = "[object Uint8Array]", fc = "[object Uint8ClampedArray]", vc = "[object Uint16Array]", pc = "[object Uint32Array]", le = {};
le[oc] = le[uc] = le[ic] = le[sc] = le[cc] = le[dc] = le[fc] = le[vc] = le[pc] = !0;
le[Hs] = le[qs] = le[nc] = le[Gs] = le[lc] = le[Ys] = le[Ws] = le[Zs] = le[Xs] = le[Js] = le[Qs] = le[ec] = le[tc] = le[ac] = le[rc] = !1;
function mc(e) {
  return Ks(e) && zs(e.length) && !!le[Rs(e)];
}
var yc = mc, We = { exports: {} };
(function(e, t) {
  var a = xn, r = t && !t.nodeType && t, n = r && !0 && e && !e.nodeType && e, o = n && n.exports === r, l = o && a.process, u = function() {
    try {
      var s = n && n.require && n.require("util").types;
      return s || l && l.binding && l.binding("util");
    } catch {
    }
  }();
  e.exports = u;
})(We, We.exports);
We.exports;
var gc = yc, bc = xa, ar = We.exports, rr = ar && ar.isTypedArray, hc = rr ? bc(rr) : gc, zt = hc, _c = Object.prototype;
function $c(e) {
  var t = e && e.constructor, a = typeof t == "function" && t.prototype || _c;
  return e === a;
}
var Kt = $c;
function Cc(e, t) {
  return function(a) {
    return e(t(a));
  };
}
var In = Cc;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Oc = 9007199254740991, Sc = /^(?:0|[1-9]\d*)$/;
function Ac(e, t) {
  var a = ce(e);
  return t = t ?? Oc, !!t && (a == "number" || a != "symbol" && Sc.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
var Ta = Ac;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function wc(e, t) {
  for (var a = -1, r = Array(e); ++a < e; )
    r[a] = t(a);
  return r;
}
var kc = wc, Ec = kc, xc = gt, Tc = _e, Pc = Be.exports, Fc = Ta, Dc = zt, Bc = Object.prototype, Ic = Bc.hasOwnProperty;
function jc(e, t) {
  var a = Tc(e), r = !a && xc(e), n = !a && !r && Pc(e), o = !a && !r && !n && Dc(e), l = a || r || n || o, u = l ? Ec(e.length, String) : [], s = u.length;
  for (var c in e)
    (t || Ic.call(e, c)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
    (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    n && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    o && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
    Fc(c, s))) && u.push(c);
  return u;
}
var jn = jc, Mc = Lt;
function Nc() {
  this.__data__ = new Mc(), this.size = 0;
}
var Vc = Nc;
function Lc(e) {
  var t = this.__data__, a = t.delete(e);
  return this.size = t.size, a;
}
var Uc = Lc;
function Rc(e) {
  return this.__data__.get(e);
}
var zc = Rc;
function Kc(e) {
  return this.__data__.has(e);
}
var Hc = Kc, qc = Lt, Gc = wa, Yc = ka, Wc = 200;
function Zc(e, t) {
  var a = this.__data__;
  if (a instanceof qc) {
    var r = a.__data__;
    if (!Gc || r.length < Wc - 1)
      return r.push([e, t]), this.size = ++a.size, this;
    a = this.__data__ = new Yc(r);
  }
  return a.set(e, t), this.size = a.size, this;
}
var Xc = Zc, Jc = Lt, Qc = Vc, ed = Uc, td = zc, ad = Hc, rd = Xc;
function tt(e) {
  var t = this.__data__ = new Jc(e);
  this.size = t.size;
}
tt.prototype.clear = Qc;
tt.prototype.delete = ed;
tt.prototype.get = td;
tt.prototype.has = ad;
tt.prototype.set = rd;
var Ht = tt, nd = we, ld = nd.Uint8Array, Mn = ld, od = Dn, ud = Nt;
function id(e, t, a, r) {
  var n = !a;
  a || (a = {});
  for (var o = -1, l = t.length; ++o < l; ) {
    var u = t[o], s = r ? r(a[u], e[u], u, a, e) : void 0;
    s === void 0 && (s = e[u]), n ? ud(a, u, s) : od(a, u, s);
  }
  return a;
}
var at = id;
function sd(e) {
  var t = [];
  if (e != null)
    for (var a in Object(e))
      t.push(a);
  return t;
}
var cd = sd, dd = ve, fd = Kt, vd = cd, pd = Object.prototype, md = pd.hasOwnProperty;
function yd(e) {
  if (!dd(e))
    return vd(e);
  var t = fd(e), a = [];
  for (var r in e)
    r == "constructor" && (t || !md.call(e, r)) || a.push(r);
  return a;
}
var gd = yd, bd = jn, hd = gd, _d = bt;
function $d(e) {
  return _d(e) ? bd(e, !0) : hd(e);
}
var ht = $d, ft = { exports: {} };
(function(e, t) {
  var a = we, r = t && !t.nodeType && t, n = r && !0 && e && !e.nodeType && e, o = n && n.exports === r, l = o ? a.Buffer : void 0, u = l ? l.allocUnsafe : void 0;
  function s(c, f) {
    if (f)
      return c.slice();
    var p = c.length, m = u ? u(p) : new c.constructor(p);
    return c.copy(m), m;
  }
  e.exports = s;
})(ft, ft.exports);
ft.exports;
function Cd(e, t) {
  var a = -1, r = e.length;
  for (t || (t = Array(r)); ++a < r; )
    t[a] = e[a];
  return t;
}
var Nn = Cd, Od = In, Sd = Od(Object.getPrototypeOf, Object), Pa = Sd, nr = Mn;
function Ad(e) {
  var t = new e.constructor(e.byteLength);
  return new nr(t).set(new nr(e)), t;
}
var Fa = Ad, wd = Fa;
function kd(e, t) {
  var a = t ? wd(e.buffer) : e.buffer;
  return new e.constructor(a, e.byteOffset, e.length);
}
var Vn = kd, Ed = ve, lr = Object.create, xd = function() {
  function e() {
  }
  return function(t) {
    if (!Ed(t))
      return {};
    if (lr)
      return lr(t);
    e.prototype = t;
    var a = new e();
    return e.prototype = void 0, a;
  };
}(), Td = xd, Pd = Td, Fd = Pa, Dd = Kt;
function Bd(e) {
  return typeof e.constructor == "function" && !Dd(e) ? Pd(Fd(e)) : {};
}
var Ln = Bd;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Id(e) {
  return e;
}
var Da = Id;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function jd(e, t, a) {
  switch (a.length) {
    case 0:
      return e.call(t);
    case 1:
      return e.call(t, a[0]);
    case 2:
      return e.call(t, a[0], a[1]);
    case 3:
      return e.call(t, a[0], a[1], a[2]);
  }
  return e.apply(t, a);
}
var Md = jd, Nd = Md, or = Math.max;
function Vd(e, t, a) {
  return t = or(t === void 0 ? e.length - 1 : t, 0), function() {
    for (var r = arguments, n = -1, o = or(r.length - t, 0), l = Array(o); ++n < o; )
      l[n] = r[t + n];
    n = -1;
    for (var u = Array(t + 1); ++n < t; )
      u[n] = r[n];
    return u[t] = a(l), Nd(e, this, u);
  };
}
var Un = Vd;
function Ld(e) {
  return function() {
    return e;
  };
}
var Ud = Ld, Rd = Ud, ur = Fn, zd = Da, Kd = ur ? function(e, t) {
  return ur(e, "toString", {
    configurable: !0,
    enumerable: !1,
    value: Rd(t),
    writable: !0
  });
} : zd, Hd = Kd, qd = 800, Gd = 16, Yd = Date.now;
function Wd(e) {
  var t = 0, a = 0;
  return function() {
    var r = Yd(), n = Gd - (r - a);
    if (a = r, n > 0) {
      if (++t >= qd)
        return arguments[0];
    } else
      t = 0;
    return e.apply(void 0, arguments);
  };
}
var Zd = Wd, Xd = Hd, Jd = Zd, Qd = Jd(Xd), Rn = Qd;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var ef = bt, tf = Oe;
function af(e) {
  return tf(e) && ef(e);
}
var rf = af, nf = Da, lf = Un, of = Rn;
function uf(e, t) {
  return of(lf(e, t, nf), e + "");
}
var sf = uf;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var cf = Me, df = Pa, ff = Oe, vf = "[object Object]", pf = Function.prototype, mf = Object.prototype, zn = pf.toString, yf = mf.hasOwnProperty, gf = zn.call(Object);
function bf(e) {
  if (!ff(e) || cf(e) != vf)
    return !1;
  var t = df(e);
  if (t === null)
    return !0;
  var a = yf.call(t, "constructor") && t.constructor;
  return typeof a == "function" && a instanceof a && zn.call(a) == gf;
}
var Kn = bf;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var hf = yt, _f = bt, $f = Ta, Cf = ve;
function Of(e, t, a) {
  if (!Cf(a))
    return !1;
  var r = ce(t);
  return (r == "number" ? _f(a) && $f(t, a.length) : r == "string" && t in a) ? hf(a[t], e) : !1;
}
var Sf = Of;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Af = {
  classPrefix: "t",
  animation: {
    include: ["ripple", "expand", "fade"],
    exclude: []
  },
  calendar: {
    firstDayOfWeek: 1,
    fillWithZero: !0,
    controllerConfig: void 0
  },
  icon: {},
  input: {
    autocomplete: ""
  },
  dialog: {
    closeOnEscKeydown: !0,
    closeOnOverlayClick: !0,
    confirmBtnTheme: {
      default: "primary",
      info: "primary",
      warning: "primary",
      danger: "primary",
      success: "primary"
    }
  },
  message: {},
  popconfirm: {
    confirmBtnTheme: {
      default: "primary",
      warning: "primary",
      danger: "primary"
    }
  },
  table: {
    expandIcon: void 0,
    sortIcon: void 0,
    filterIcon: void 0,
    treeExpandAndFoldIcon: void 0,
    hideSortTips: !1,
    size: "medium"
  },
  select: {
    clearIcon: void 0,
    filterable: !1
  },
  drawer: {
    closeOnEscKeydown: !0,
    closeOnOverlayClick: !0,
    size: "small"
  },
  tree: {
    folderIcon: void 0
  },
  datePicker: {
    firstDayOfWeek: 1
  },
  steps: {
    checkIcon: void 0,
    errorIcon: void 0
  },
  tag: {
    closeIcon: void 0
  },
  form: {
    requiredMark: void 0
  }
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Hn = { exports: {} };
(function(e, t) {
  (function(a, r) {
    e.exports = r();
  })(De, function() {
    var a = 1e3, r = 6e4, n = 36e5, o = "millisecond", l = "second", u = "minute", s = "hour", c = "day", f = "week", p = "month", m = "quarter", h = "year", O = "date", S = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = {
      name: "en",
      weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
      months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
      ordinal: function(d) {
        var g = ["th", "st", "nd", "rd"], b = d % 100;
        return "[" + d + (g[(b - 20) % 10] || g[b] || g[0]) + "]";
      }
    }, C = function(d, g, b) {
      var k = String(d);
      return !k || k.length >= g ? d : "" + Array(g + 1 - k.length).join(b) + d;
    }, z = {
      s: C,
      z: function(d) {
        var g = -d.utcOffset(), b = Math.abs(g), k = Math.floor(b / 60), U = b % 60;
        return (g <= 0 ? "+" : "-") + C(k, 2, "0") + ":" + C(U, 2, "0");
      },
      m: function V(d, g) {
        if (d.date() < g.date())
          return -V(g, d);
        var b = 12 * (g.year() - d.year()) + (g.month() - d.month()), k = d.clone().add(b, p), U = g - k < 0, R = d.clone().add(b + (U ? -1 : 1), p);
        return +(-(b + (g - k) / (U ? k - R : R - k)) || 0);
      },
      a: function(d) {
        return d < 0 ? Math.ceil(d) || 0 : Math.floor(d);
      },
      p: function(d) {
        return {
          M: p,
          y: h,
          w: f,
          d: c,
          D: O,
          h: s,
          m: u,
          s: l,
          ms: o,
          Q: m
        }[d] || String(d || "").toLowerCase().replace(/s$/, "");
      },
      u: function(d) {
        return d === void 0;
      }
    }, G = "en", P = {};
    P[G] = $;
    var q = "$isDayjsObject", Y = function(d) {
      return d instanceof ye || !(!d || !d[q]);
    }, H = function V(d, g, b) {
      var k;
      if (!d)
        return G;
      if (typeof d == "string") {
        var U = d.toLowerCase();
        P[U] && (k = U), g && (P[U] = g, k = U);
        var R = d.split("-");
        if (!k && R.length > 1)
          return V(R[0]);
      } else {
        var J = d.name;
        P[J] = d, k = J;
      }
      return !b && k && (G = k), k || !b && G;
    }, I = function(d, g) {
      if (Y(d))
        return d.clone();
      var b = ce(g) == "object" ? g : {};
      return b.date = d, b.args = arguments, new ye(b);
    }, N = z;
    N.l = H, N.i = Y, N.w = function(V, d) {
      return I(V, {
        locale: d.$L,
        utc: d.$u,
        x: d.$x,
        $offset: d.$offset
      });
    };
    var ye = function() {
      function V(g) {
        this.$L = H(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[q] = !0;
      }
      var d = V.prototype;
      return d.parse = function(g) {
        this.$d = function(b) {
          var k = b.date, U = b.utc;
          if (k === null)
            return /* @__PURE__ */ new Date(NaN);
          if (N.u(k))
            return /* @__PURE__ */ new Date();
          if (k instanceof Date)
            return new Date(k);
          if (typeof k == "string" && !/Z$/i.test(k)) {
            var R = k.match(w);
            if (R) {
              var J = R[2] - 1 || 0, i = (R[7] || "0").substring(0, 3);
              return U ? new Date(Date.UTC(R[1], J, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, i)) : new Date(R[1], J, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, i);
            }
          }
          return new Date(k);
        }(g), this.init();
      }, d.init = function() {
        var g = this.$d;
        this.$y = g.getFullYear(), this.$M = g.getMonth(), this.$D = g.getDate(), this.$W = g.getDay(), this.$H = g.getHours(), this.$m = g.getMinutes(), this.$s = g.getSeconds(), this.$ms = g.getMilliseconds();
      }, d.$utils = function() {
        return N;
      }, d.isValid = function() {
        return this.$d.toString() !== S;
      }, d.isSame = function(g, b) {
        var k = I(g);
        return this.startOf(b) <= k && k <= this.endOf(b);
      }, d.isAfter = function(g, b) {
        return I(g) < this.startOf(b);
      }, d.isBefore = function(g, b) {
        return this.endOf(b) < I(g);
      }, d.$g = function(g, b, k) {
        return N.u(g) ? this[b] : this.set(k, g);
      }, d.unix = function() {
        return Math.floor(this.valueOf() / 1e3);
      }, d.valueOf = function() {
        return this.$d.getTime();
      }, d.startOf = function(g, b) {
        var k = this, U = !!N.u(b) || b, R = N.p(g), J = function(de, Z) {
          var Ce = N.w(k.$u ? Date.UTC(k.$y, Z, de) : new Date(k.$y, Z, de), k);
          return U ? Ce : Ce.endOf(c);
        }, i = function(de, Z) {
          return N.w(k.toDate()[de].apply(k.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), k);
        }, M = this.$W, ue = this.$M, pe = this.$D, be = "set" + (this.$u ? "UTC" : "");
        switch (R) {
          case h:
            return U ? J(1, 0) : J(31, 11);
          case p:
            return U ? J(1, ue) : J(0, ue + 1);
          case f:
            var he = this.$locale().weekStart || 0, ke = (M < he ? M + 7 : M) - he;
            return J(U ? pe - ke : pe + (6 - ke), ue);
          case c:
          case O:
            return i(be + "Hours", 0);
          case s:
            return i(be + "Minutes", 1);
          case u:
            return i(be + "Seconds", 2);
          case l:
            return i(be + "Milliseconds", 3);
          default:
            return this.clone();
        }
      }, d.endOf = function(g) {
        return this.startOf(g, !1);
      }, d.$set = function(g, b) {
        var k, U = N.p(g), R = "set" + (this.$u ? "UTC" : ""), J = (k = {}, k[c] = R + "Date", k[O] = R + "Date", k[p] = R + "Month", k[h] = R + "FullYear", k[s] = R + "Hours", k[u] = R + "Minutes", k[l] = R + "Seconds", k[o] = R + "Milliseconds", k)[U], i = U === c ? this.$D + (b - this.$W) : b;
        if (U === p || U === h) {
          var M = this.clone().set(O, 1);
          M.$d[J](i), M.init(), this.$d = M.set(O, Math.min(this.$D, M.daysInMonth())).$d;
        } else
          J && this.$d[J](i);
        return this.init(), this;
      }, d.set = function(g, b) {
        return this.clone().$set(g, b);
      }, d.get = function(g) {
        return this[N.p(g)]();
      }, d.add = function(g, b) {
        var k, U = this;
        g = Number(g);
        var R = N.p(b), J = function(pe) {
          var be = I(U);
          return N.w(be.date(be.date() + Math.round(pe * g)), U);
        };
        if (R === p)
          return this.set(p, this.$M + g);
        if (R === h)
          return this.set(h, this.$y + g);
        if (R === c)
          return J(1);
        if (R === f)
          return J(7);
        var i = (k = {}, k[u] = r, k[s] = n, k[l] = a, k)[R] || 1, M = this.$d.getTime() + g * i;
        return N.w(M, this);
      }, d.subtract = function(g, b) {
        return this.add(-1 * g, b);
      }, d.format = function(g) {
        var b = this, k = this.$locale();
        if (!this.isValid())
          return k.invalidDate || S;
        var U = g || "YYYY-MM-DDTHH:mm:ssZ", R = N.z(this), J = this.$H, i = this.$m, M = this.$M, ue = k.weekdays, pe = k.months, be = k.meridiem, he = function(Z, Ce, ze, Ke) {
          return Z && (Z[Ce] || Z(b, U)) || ze[Ce].slice(0, Ke);
        }, ke = function(Z) {
          return N.s(J % 12 || 12, Z, "0");
        }, v = be || function(de, Z, Ce) {
          var ze = de < 12 ? "AM" : "PM";
          return Ce ? ze.toLowerCase() : ze;
        };
        return U.replace(T, function(de, Z) {
          return Z || function(Ce) {
            switch (Ce) {
              case "YY":
                return String(b.$y).slice(-2);
              case "YYYY":
                return N.s(b.$y, 4, "0");
              case "M":
                return M + 1;
              case "MM":
                return N.s(M + 1, 2, "0");
              case "MMM":
                return he(k.monthsShort, M, pe, 3);
              case "MMMM":
                return he(pe, M);
              case "D":
                return b.$D;
              case "DD":
                return N.s(b.$D, 2, "0");
              case "d":
                return String(b.$W);
              case "dd":
                return he(k.weekdaysMin, b.$W, ue, 2);
              case "ddd":
                return he(k.weekdaysShort, b.$W, ue, 3);
              case "dddd":
                return ue[b.$W];
              case "H":
                return String(J);
              case "HH":
                return N.s(J, 2, "0");
              case "h":
                return ke(1);
              case "hh":
                return ke(2);
              case "a":
                return v(J, i, !0);
              case "A":
                return v(J, i, !1);
              case "m":
                return String(i);
              case "mm":
                return N.s(i, 2, "0");
              case "s":
                return String(b.$s);
              case "ss":
                return N.s(b.$s, 2, "0");
              case "SSS":
                return N.s(b.$ms, 3, "0");
              case "Z":
                return R;
            }
            return null;
          }(de) || R.replace(":", "");
        });
      }, d.utcOffset = function() {
        return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
      }, d.diff = function(g, b, k) {
        var U, R = this, J = N.p(b), i = I(g), M = (i.utcOffset() - this.utcOffset()) * r, ue = this - i, pe = function() {
          return N.m(R, i);
        };
        switch (J) {
          case h:
            U = pe() / 12;
            break;
          case p:
            U = pe();
            break;
          case m:
            U = pe() / 3;
            break;
          case f:
            U = (ue - M) / 6048e5;
            break;
          case c:
            U = (ue - M) / 864e5;
            break;
          case s:
            U = ue / n;
            break;
          case u:
            U = ue / r;
            break;
          case l:
            U = ue / a;
            break;
          default:
            U = ue;
        }
        return k ? U : N.a(U);
      }, d.daysInMonth = function() {
        return this.endOf(p).$D;
      }, d.$locale = function() {
        return P[this.$L];
      }, d.locale = function(g, b) {
        if (!g)
          return this.$L;
        var k = this.clone(), U = H(g, b, !0);
        return U && (k.$L = U), k;
      }, d.clone = function() {
        return N.w(this.$d, this);
      }, d.toDate = function() {
        return new Date(this.valueOf());
      }, d.toJSON = function() {
        return this.isValid() ? this.toISOString() : null;
      }, d.toISOString = function() {
        return this.$d.toISOString();
      }, d.toString = function() {
        return this.$d.toUTCString();
      }, V;
    }(), B = ye.prototype;
    return I.prototype = B, [["$ms", o], ["$s", l], ["$m", u], ["$H", s], ["$W", c], ["$M", p], ["$y", h], ["$D", O]].forEach(function(V) {
      B[V[1]] = function(d) {
        return this.$g(d, V[0], V[1]);
      };
    }), I.extend = function(V, d) {
      return V.$i || (V(d, ye, I), V.$i = !0), I;
    }, I.locale = H, I.isDayjs = Y, I.unix = function(V) {
      return I(1e3 * V);
    }, I.en = P[G], I.Ls = P, I.p = {}, I;
  });
})(Hn);
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var wf = { exports: {} };
(function(e, t) {
  (function(a, r) {
    e.exports = r(Hn.exports);
  })(De, function(a) {
    function r(l) {
      return l && ce(l) == "object" && "default" in l ? l : {
        default: l
      };
    }
    var n = r(a), o = {
      name: "zh-cn",
      weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
      weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
      weekdaysMin: "日_一_二_三_四_五_六".split("_"),
      months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
      monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
      ordinal: function(u, s) {
        return s === "W" ? u + "周" : u + "日";
      },
      weekStart: 1,
      yearStart: 4,
      formats: {
        LT: "HH:mm",
        LTS: "HH:mm:ss",
        L: "YYYY/MM/DD",
        LL: "YYYY年M月D日",
        LLL: "YYYY年M月D日Ah点mm分",
        LLLL: "YYYY年M月D日ddddAh点mm分",
        l: "YYYY/M/D",
        ll: "YYYY年M月D日",
        lll: "YYYY年M月D日 HH:mm",
        llll: "YYYY年M月D日dddd HH:mm"
      },
      relativeTime: {
        future: "%s内",
        past: "%s前",
        s: "几秒",
        m: "1 分钟",
        mm: "%d 分钟",
        h: "1 小时",
        hh: "%d 小时",
        d: "1 天",
        dd: "%d 天",
        M: "1 个月",
        MM: "%d 个月",
        y: "1 年",
        yy: "%d 年"
      },
      meridiem: function(u, s) {
        var c = 100 * u + s;
        return c < 600 ? "凌晨" : c < 900 ? "早上" : c < 1100 ? "上午" : c < 1300 ? "中午" : c < 1800 ? "下午" : "晚上";
      }
    };
    return n.default.locale(o, null, !0), o;
  });
})(wf);
var kf = {
  pagination: {
    itemsPerPage: "{size} 条/页",
    jumpTo: "跳至",
    page: "页",
    total: "共 {total} 条数据"
  },
  cascader: {
    empty: "暂无数据",
    loadingText: "加载中",
    placeholder: "请选择"
  },
  calendar: {
    yearSelection: "{year} 年",
    monthSelection: "{month} 月",
    yearRadio: "年",
    monthRadio: "月",
    hideWeekend: "隐藏周末",
    showWeekend: "显示周末",
    today: "今天",
    thisMonth: "本月",
    week: "一,二,三,四,五,六,日",
    cellMonth: "1 月,2 月,3 月,4 月,5 月,6 月,7 月,8 月,9 月,10 月,11 月,12 月"
  },
  transfer: {
    title: "{checked} / {total} 项",
    empty: "暂无数据",
    placeholder: "请输入关键词搜索"
  },
  timePicker: {
    dayjsLocale: "zh-cn",
    now: "此刻",
    confirm: "确定",
    anteMeridiem: "上午",
    postMeridiem: "下午",
    placeholder: "选择时间"
  },
  dialog: {
    confirm: "确认",
    cancel: "取消"
  },
  drawer: {
    confirm: "确认",
    cancel: "取消"
  },
  popconfirm: {
    confirm: {
      content: "确定"
    },
    cancel: {
      content: "取消"
    }
  },
  table: {
    empty: "暂无数据",
    loadingText: "正在加载中，请稍后",
    loadingMoreText: "点击加载更多",
    filterInputPlaceholder: "请输入内容（无默认值）",
    sortAscendingOperationText: "点击升序",
    sortCancelOperationText: "点击取消排序",
    sortDescendingOperationText: "点击降序",
    clearFilterResultButtonText: "清空筛选",
    columnConfigButtonText: "列配置",
    columnConfigTitleText: "表格列配置",
    columnConfigDescriptionText: "请选择需要在表格中显示的数据列",
    confirmText: "确认",
    cancelText: "取消",
    resetText: "重置",
    selectAllText: "全选",
    searchResultText: "搜索“{result}”，找到 {count} 条结果"
  },
  select: {
    empty: "暂无数据",
    loadingText: "加载中",
    placeholder: "请选择"
  },
  tree: {
    empty: "暂无数据"
  },
  treeSelect: {
    empty: "暂无数据",
    loadingText: "加载中",
    placeholder: "请选择"
  },
  datePicker: {
    dayjsLocale: "zh-cn",
    placeholder: {
      date: "请选择日期",
      month: "请选择月份",
      year: "请选择年份"
    },
    weekdays: ["一", "二", "三", "四", "五", "六", "日"],
    months: ["1 月", "2 月", "3 月", "4 月", "5 月", "6 月", "7 月", "8 月", "9 月", "10 月", "11 月", "12 月"],
    quarters: ["一季度", "二季度", "三季度", "四季度"],
    rangeSeparator: " - ",
    direction: "ltr",
    format: "YYYY-MM-DD",
    dayAriaLabel: "日",
    weekAbbreviation: "周",
    yearAriaLabel: "年",
    monthAriaLabel: "月",
    confirm: "确定",
    selectTime: "选择时间",
    selectDate: "选择日期",
    nextYear: "下一年",
    preYear: "上一年",
    nextMonth: "下个月",
    preMonth: "上个月",
    preDecade: "上个十年",
    nextDecade: "下个十年",
    now: "当前"
  },
  upload: {
    sizeLimitMessage: "文件大小不能超过 {sizeLimit}",
    cancelUploadText: "取消上传",
    triggerUploadText: {
      fileInput: "选择文件",
      image: "点击上传图片",
      normal: "点击上传",
      reupload: "重新选择",
      continueUpload: "继续选择",
      delete: "删除",
      uploading: "上传中"
    },
    dragger: {
      dragDropText: "释放鼠标",
      draggingText: "拖拽到此区域",
      clickAndDragText: "点击上方“选择文件”或将文件拖拽到此区域"
    },
    file: {
      fileNameText: "文件名",
      fileSizeText: "文件大小",
      fileStatusText: "状态",
      fileOperationText: "操作",
      fileOperationDateText: "上传日期"
    },
    progress: {
      uploadingText: "上传中",
      waitingText: "待上传",
      failText: "上传失败",
      successText: "上传成功"
    }
  },
  form: {
    errorMessage: {
      date: "请输入正确的${name}",
      url: "请输入正确的${name}",
      required: "${name}必填",
      max: "${name}字符长度不能超过 ${validate} 个字符，一个中文等于两个字符",
      min: "${name}字符长度不能少于 ${validate} 个字符，一个中文等于两个字符",
      len: "${name}字符长度必须是 ${validate}",
      enum: "${name}只能是${validate}等",
      idcard: "请输入正确的${name}",
      telnumber: "请输入正确的${name}",
      pattern: "请输入正确的${name}",
      validator: "${name}不符合要求",
      boolean: "${name}数据类型必须是布尔类型",
      number: "${name}必须是数字"
    }
  },
  input: {
    placeholder: "请输入"
  },
  list: {
    loadingText: "正在加载中，请稍等",
    loadingMoreText: "点击加载更多"
  },
  alert: {
    expandText: "展开更多",
    collapseText: "收起"
  },
  anchor: {
    copySuccessText: "链接复制成功",
    copyText: "复制链接"
  },
  colorPicker: {
    swatchColorTitle: "系统预设颜色",
    recentColorTitle: "最近使用颜色",
    clearConfirmText: "确定清空最近使用的颜色吗？"
  },
  guide: {
    finishButtonProps: {
      content: "完成",
      theme: "primary"
    },
    nextButtonProps: {
      content: "下一步",
      theme: "primary"
    },
    skipButtonProps: {
      content: "跳过",
      theme: "default"
    },
    prevButtonProps: {
      content: "上一步",
      theme: "default"
    }
  },
  image: {
    errorText: "图片无法显示",
    loadingText: "图片加载中"
  },
  imageViewer: {
    errorText: "图片加载失败，可尝试重新加载",
    mirrorTipText: "镜像",
    rotateTipText: "旋转",
    originalSizeTipText: "原始大小"
  }
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Ef(e) {
  return function(t, a, r) {
    for (var n = -1, o = Object(t), l = r(t), u = l.length; u--; ) {
      var s = l[e ? u : ++n];
      if (a(o[s], s, o) === !1)
        break;
    }
    return t;
  };
}
var xf = Ef, Tf = xf, Pf = Tf(), qn = Pf, Ff = Nt, Df = yt;
function Bf(e, t, a) {
  (a !== void 0 && !Df(e[t], a) || a === void 0 && !(t in e)) && Ff(e, t, a);
}
var Gn = Bf;
function If(e, t) {
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
    return e[t];
}
var Yn = If, jf = at, Mf = ht;
function Nf(e) {
  return jf(e, Mf(e));
}
var Vf = Nf, ir = Gn, Lf = ft.exports, Uf = Vn, Rf = Nn, zf = Ln, sr = gt, cr = _e, Kf = rf, Hf = Be.exports, qf = Ae, Gf = ve, Yf = Kn, Wf = zt, dr = Yn, Zf = Vf;
function Xf(e, t, a, r, n, o, l) {
  var u = dr(e, a), s = dr(t, a), c = l.get(s);
  if (c) {
    ir(e, a, c);
    return;
  }
  var f = o ? o(u, s, a + "", e, t, l) : void 0, p = f === void 0;
  if (p) {
    var m = cr(s), h = !m && Hf(s), O = !m && !h && Wf(s);
    f = s, m || h || O ? cr(u) ? f = u : Kf(u) ? f = Rf(u) : h ? (p = !1, f = Lf(s, !0)) : O ? (p = !1, f = Uf(s, !0)) : f = [] : Yf(s) || sr(s) ? (f = u, sr(u) ? f = Zf(u) : (!Gf(u) || qf(u)) && (f = zf(s))) : p = !1;
  }
  p && (l.set(s, f), n(f, s, r, o, l), l.delete(s)), ir(e, a, f);
}
var Jf = Xf, Qf = Ht, ev = Gn, tv = qn, av = Jf, rv = ve, nv = ht, lv = Yn;
function Wn(e, t, a, r, n) {
  e !== t && tv(t, function(o, l) {
    if (n || (n = new Qf()), rv(o))
      av(e, t, l, a, Wn, r, n);
    else {
      var u = r ? r(lv(e, l), o, l + "", e, t, n) : void 0;
      u === void 0 && (u = o), ev(e, l, u);
    }
  }, nv);
}
var Zn = Wn, ov = sf, uv = Sf;
function iv(e) {
  return ov(function(t, a) {
    var r = -1, n = a.length, o = n > 1 ? a[n - 1] : void 0, l = n > 2 ? a[2] : void 0;
    for (o = e.length > 3 && typeof o == "function" ? (n--, o) : void 0, l && uv(a[0], a[1], l) && (o = n < 3 ? void 0 : o, n = 1), t = Object(t); ++r < n; ) {
      var u = a[r];
      u && e(t, u, r, o);
    }
    return t;
  });
}
var Xn = iv, sv = Zn, cv = Xn;
cv(function(e, t, a, r) {
  sv(e, t, a, r);
});
var dv = Zn, fv = Xn, vv = fv(function(e, t, a) {
  dv(e, t, a);
}), pv = vv, qt = /* @__PURE__ */ function(e) {
  return e.ripple = "ripple", e.expand = "expand", e.fade = "fade", e;
}(qt || {}), mv = pv(Af, kf), yv = Symbol("configProvide");
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var gv = Re, bv = we, hv = gv(bv, "Set"), _v = hv;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var $v = In, Cv = $v(Object.keys, Object), Ov = Cv, Sv = Kt, Av = Ov, wv = Object.prototype, kv = wv.hasOwnProperty;
function Ev(e) {
  if (!Sv(e))
    return Av(e);
  var t = [];
  for (var a in Object(e))
    kv.call(e, a) && a != "constructor" && t.push(a);
  return t;
}
var Jn = Ev, xv = Re, Tv = we, Pv = xv(Tv, "DataView"), Fv = Pv, Dv = Re, Bv = we, Iv = Dv(Bv, "Promise"), jv = Iv, Mv = Re, Nv = we, Vv = Mv(Nv, "WeakMap"), Lv = Vv, va = Fv, pa = wa, ma = jv, ya = _v, ga = Lv, Qn = Me, rt = Pn, fr = "[object Map]", Uv = "[object Object]", vr = "[object Promise]", pr = "[object Set]", mr = "[object WeakMap]", yr = "[object DataView]", Rv = rt(va), zv = rt(pa), Kv = rt(ma), Hv = rt(ya), qv = rt(ga), Ve = Qn;
(va && Ve(new va(new ArrayBuffer(1))) != yr || pa && Ve(new pa()) != fr || ma && Ve(ma.resolve()) != vr || ya && Ve(new ya()) != pr || ga && Ve(new ga()) != mr) && (Ve = function(t) {
  var a = Qn(t), r = a == Uv ? t.constructor : void 0, n = r ? rt(r) : "";
  if (n)
    switch (n) {
      case Rv:
        return yr;
      case zv:
        return fr;
      case Kv:
        return vr;
      case Hv:
        return pr;
      case qv:
        return mr;
    }
  return a;
});
var _t = Ve;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Gv(e, t) {
  for (var a = -1, r = t.length, n = e.length; ++a < r; )
    e[n + a] = t[a];
  return e;
}
var Ba = Gv;
function Yv(e, t) {
  for (var a = -1, r = e == null ? 0 : e.length, n = 0, o = []; ++a < r; ) {
    var l = e[a];
    t(l, a, e) && (o[n++] = l);
  }
  return o;
}
var Wv = Yv;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Zv = jn, Xv = Jn, Jv = bt;
function Qv(e) {
  return Jv(e) ? Zv(e) : Xv(e);
}
var $t = Qv, ep = Ba, tp = _e;
function ap(e, t, a) {
  var r = t(e);
  return tp(e) ? r : ep(r, a(e));
}
var el = ap;
function rp() {
  return [];
}
var tl = rp, np = Wv, lp = tl, op = Object.prototype, up = op.propertyIsEnumerable, gr = Object.getOwnPropertySymbols, ip = gr ? function(e) {
  return e == null ? [] : (e = Object(e), np(gr(e), function(t) {
    return up.call(e, t);
  }));
} : lp, Ia = ip, sp = el, cp = Ia, dp = $t;
function fp(e) {
  return sp(e, dp, cp);
}
var al = fp;
function vp(e, t) {
  for (var a = -1, r = e == null ? 0 : e.length; ++a < r && t(e[a], a, e) !== !1; )
    ;
  return e;
}
var pp = vp, mp = at, yp = $t;
function gp(e, t) {
  return e && mp(t, yp(t), e);
}
var bp = gp, hp = at, _p = ht;
function $p(e, t) {
  return e && hp(t, _p(t), e);
}
var Cp = $p, Op = at, Sp = Ia;
function Ap(e, t) {
  return Op(e, Sp(e), t);
}
var wp = Ap, kp = Ba, Ep = Pa, xp = Ia, Tp = tl, Pp = Object.getOwnPropertySymbols, Fp = Pp ? function(e) {
  for (var t = []; e; )
    kp(t, xp(e)), e = Ep(e);
  return t;
} : Tp, rl = Fp, Dp = at, Bp = rl;
function Ip(e, t) {
  return Dp(e, Bp(e), t);
}
var jp = Ip, Mp = el, Np = rl, Vp = ht;
function Lp(e) {
  return Mp(e, Vp, Np);
}
var nl = Lp, Up = Object.prototype, Rp = Up.hasOwnProperty;
function zp(e) {
  var t = e.length, a = new e.constructor(t);
  return t && typeof e[0] == "string" && Rp.call(e, "index") && (a.index = e.index, a.input = e.input), a;
}
var Kp = zp, Hp = Fa;
function qp(e, t) {
  var a = t ? Hp(e.buffer) : e.buffer;
  return new e.constructor(a, e.byteOffset, e.byteLength);
}
var Gp = qp, Yp = /\w*$/;
function Wp(e) {
  var t = new e.constructor(e.source, Yp.exec(e));
  return t.lastIndex = e.lastIndex, t;
}
var Zp = Wp, br = Xe, hr = br ? br.prototype : void 0, _r = hr ? hr.valueOf : void 0;
function Xp(e) {
  return _r ? Object(_r.call(e)) : {};
}
var Jp = Xp, Qp = Fa, em = Gp, tm = Zp, am = Jp, rm = Vn, nm = "[object Boolean]", lm = "[object Date]", om = "[object Map]", um = "[object Number]", im = "[object RegExp]", sm = "[object Set]", cm = "[object String]", dm = "[object Symbol]", fm = "[object ArrayBuffer]", vm = "[object DataView]", pm = "[object Float32Array]", mm = "[object Float64Array]", ym = "[object Int8Array]", gm = "[object Int16Array]", bm = "[object Int32Array]", hm = "[object Uint8Array]", _m = "[object Uint8ClampedArray]", $m = "[object Uint16Array]", Cm = "[object Uint32Array]";
function Om(e, t, a) {
  var r = e.constructor;
  switch (t) {
    case fm:
      return Qp(e);
    case nm:
    case lm:
      return new r(+e);
    case vm:
      return em(e, a);
    case pm:
    case mm:
    case ym:
    case gm:
    case bm:
    case hm:
    case _m:
    case $m:
    case Cm:
      return rm(e, a);
    case om:
      return new r();
    case um:
    case cm:
      return new r(e);
    case im:
      return tm(e);
    case sm:
      return new r();
    case dm:
      return am(e);
  }
}
var Sm = Om, Am = _t, wm = Oe, km = "[object Map]";
function Em(e) {
  return wm(e) && Am(e) == km;
}
var xm = Em, Tm = xm, Pm = xa, $r = We.exports, Cr = $r && $r.isMap, Fm = Cr ? Pm(Cr) : Tm, Dm = Fm, Bm = _t, Im = Oe, jm = "[object Set]";
function Mm(e) {
  return Im(e) && Bm(e) == jm;
}
var Nm = Mm, Vm = Nm, Lm = xa, Or = We.exports, Sr = Or && Or.isSet, Um = Sr ? Lm(Sr) : Vm, Rm = Um, zm = Ht, Km = pp, Hm = Dn, qm = bp, Gm = Cp, Ym = ft.exports, Wm = Nn, Zm = wp, Xm = jp, Jm = al, Qm = nl, ey = _t, ty = Kp, ay = Sm, ry = Ln, ny = _e, ly = Be.exports, oy = Dm, uy = ve, iy = Rm, sy = $t, cy = ht, dy = 1, fy = 2, vy = 4, ll = "[object Arguments]", py = "[object Array]", my = "[object Boolean]", yy = "[object Date]", gy = "[object Error]", ol = "[object Function]", by = "[object GeneratorFunction]", hy = "[object Map]", _y = "[object Number]", ul = "[object Object]", $y = "[object RegExp]", Cy = "[object Set]", Oy = "[object String]", Sy = "[object Symbol]", Ay = "[object WeakMap]", wy = "[object ArrayBuffer]", ky = "[object DataView]", Ey = "[object Float32Array]", xy = "[object Float64Array]", Ty = "[object Int8Array]", Py = "[object Int16Array]", Fy = "[object Int32Array]", Dy = "[object Uint8Array]", By = "[object Uint8ClampedArray]", Iy = "[object Uint16Array]", jy = "[object Uint32Array]", ne = {};
ne[ll] = ne[py] = ne[wy] = ne[ky] = ne[my] = ne[yy] = ne[Ey] = ne[xy] = ne[Ty] = ne[Py] = ne[Fy] = ne[hy] = ne[_y] = ne[ul] = ne[$y] = ne[Cy] = ne[Oy] = ne[Sy] = ne[Dy] = ne[By] = ne[Iy] = ne[jy] = !0;
ne[gy] = ne[ol] = ne[Ay] = !1;
function Ft(e, t, a, r, n, o) {
  var l, u = t & dy, s = t & fy, c = t & vy;
  if (a && (l = n ? a(e, r, n, o) : a(e)), l !== void 0)
    return l;
  if (!uy(e))
    return e;
  var f = ny(e);
  if (f) {
    if (l = ty(e), !u)
      return Wm(e, l);
  } else {
    var p = ey(e), m = p == ol || p == by;
    if (ly(e))
      return Ym(e, u);
    if (p == ul || p == ll || m && !n) {
      if (l = s || m ? {} : ry(e), !u)
        return s ? Xm(e, Gm(l, e)) : Zm(e, qm(l, e));
    } else {
      if (!ne[p])
        return n ? e : {};
      l = ay(e, p, u);
    }
  }
  o || (o = new zm());
  var h = o.get(e);
  if (h)
    return h;
  o.set(e, l), iy(e) ? e.forEach(function(w) {
    l.add(Ft(w, t, a, w, e, o));
  }) : oy(e) && e.forEach(function(w, T) {
    l.set(T, Ft(w, t, a, T, e, o));
  });
  var O = c ? s ? Qm : Jm : s ? cy : sy, S = f ? void 0 : O(e);
  return Km(S || e, function(w, T) {
    S && (T = w, w = e[T]), Hm(l, T, Ft(w, t, a, T, e, o));
  }), l;
}
var My = Ft;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Ny = "__lodash_hash_undefined__";
function Vy(e) {
  return this.__data__.set(e, Ny), this;
}
var Ly = Vy;
function Uy(e) {
  return this.__data__.has(e);
}
var Ry = Uy, zy = ka, Ky = Ly, Hy = Ry;
function Dt(e) {
  var t = -1, a = e == null ? 0 : e.length;
  for (this.__data__ = new zy(); ++t < a; )
    this.add(e[t]);
}
Dt.prototype.add = Dt.prototype.push = Ky;
Dt.prototype.has = Hy;
var qy = Dt;
function Gy(e, t) {
  return e.has(t);
}
var Yy = Gy;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Wy(e) {
  var t = -1, a = Array(e.size);
  return e.forEach(function(r) {
    a[++t] = r;
  }), a;
}
var Zy = Wy;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Xy(e, t) {
  for (var a = -1, r = e == null ? 0 : e.length; ++a < r; )
    if (t(e[a], a, e))
      return !0;
  return !1;
}
var Jy = Xy, Qy = qy, eg = Jy, tg = Yy, ag = 1, rg = 2;
function ng(e, t, a, r, n, o) {
  var l = a & ag, u = e.length, s = t.length;
  if (u != s && !(l && s > u))
    return !1;
  var c = o.get(e), f = o.get(t);
  if (c && f)
    return c == t && f == e;
  var p = -1, m = !0, h = a & rg ? new Qy() : void 0;
  for (o.set(e, t), o.set(t, e); ++p < u; ) {
    var O = e[p], S = t[p];
    if (r)
      var w = l ? r(S, O, p, t, e, o) : r(O, S, p, e, t, o);
    if (w !== void 0) {
      if (w)
        continue;
      m = !1;
      break;
    }
    if (h) {
      if (!eg(t, function(T, $) {
        if (!tg(h, $) && (O === T || n(O, T, a, r, o)))
          return h.push($);
      })) {
        m = !1;
        break;
      }
    } else if (!(O === S || n(O, S, a, r, o))) {
      m = !1;
      break;
    }
  }
  return o.delete(e), o.delete(t), m;
}
var il = ng;
function lg(e) {
  var t = -1, a = Array(e.size);
  return e.forEach(function(r, n) {
    a[++t] = [n, r];
  }), a;
}
var og = lg, Ar = Xe, wr = Mn, ug = yt, ig = il, sg = og, cg = Zy, dg = 1, fg = 2, vg = "[object Boolean]", pg = "[object Date]", mg = "[object Error]", yg = "[object Map]", gg = "[object Number]", bg = "[object RegExp]", hg = "[object Set]", _g = "[object String]", $g = "[object Symbol]", Cg = "[object ArrayBuffer]", Og = "[object DataView]", kr = Ar ? Ar.prototype : void 0, na = kr ? kr.valueOf : void 0;
function Sg(e, t, a, r, n, o, l) {
  switch (a) {
    case Og:
      if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
        return !1;
      e = e.buffer, t = t.buffer;
    case Cg:
      return !(e.byteLength != t.byteLength || !o(new wr(e), new wr(t)));
    case vg:
    case pg:
    case gg:
      return ug(+e, +t);
    case mg:
      return e.name == t.name && e.message == t.message;
    case bg:
    case _g:
      return e == t + "";
    case yg:
      var u = sg;
    case hg:
      var s = r & dg;
      if (u || (u = cg), e.size != t.size && !s)
        return !1;
      var c = l.get(e);
      if (c)
        return c == t;
      r |= fg, l.set(e, t);
      var f = ig(u(e), u(t), r, n, o, l);
      return l.delete(e), f;
    case $g:
      if (na)
        return na.call(e) == na.call(t);
  }
  return !1;
}
var Ag = Sg, Er = al, wg = 1, kg = Object.prototype, Eg = kg.hasOwnProperty;
function xg(e, t, a, r, n, o) {
  var l = a & wg, u = Er(e), s = u.length, c = Er(t), f = c.length;
  if (s != f && !l)
    return !1;
  for (var p = s; p--; ) {
    var m = u[p];
    if (!(l ? m in t : Eg.call(t, m)))
      return !1;
  }
  var h = o.get(e), O = o.get(t);
  if (h && O)
    return h == t && O == e;
  var S = !0;
  o.set(e, t), o.set(t, e);
  for (var w = l; ++p < s; ) {
    m = u[p];
    var T = e[m], $ = t[m];
    if (r)
      var C = l ? r($, T, m, t, e, o) : r(T, $, m, e, t, o);
    if (!(C === void 0 ? T === $ || n(T, $, a, r, o) : C)) {
      S = !1;
      break;
    }
    w || (w = m == "constructor");
  }
  if (S && !w) {
    var z = e.constructor, G = t.constructor;
    z != G && "constructor" in e && "constructor" in t && !(typeof z == "function" && z instanceof z && typeof G == "function" && G instanceof G) && (S = !1);
  }
  return o.delete(e), o.delete(t), S;
}
var Tg = xg, la = Ht, Pg = il, Fg = Ag, Dg = Tg, xr = _t, Tr = _e, Pr = Be.exports, Bg = zt, Ig = 1, Fr = "[object Arguments]", Dr = "[object Array]", kt = "[object Object]", jg = Object.prototype, Br = jg.hasOwnProperty;
function Mg(e, t, a, r, n, o) {
  var l = Tr(e), u = Tr(t), s = l ? Dr : xr(e), c = u ? Dr : xr(t);
  s = s == Fr ? kt : s, c = c == Fr ? kt : c;
  var f = s == kt, p = c == kt, m = s == c;
  if (m && Pr(e)) {
    if (!Pr(t))
      return !1;
    l = !0, f = !1;
  }
  if (m && !f)
    return o || (o = new la()), l || Bg(e) ? Pg(e, t, a, r, n, o) : Fg(e, t, s, a, r, n, o);
  if (!(a & Ig)) {
    var h = f && Br.call(e, "__wrapped__"), O = p && Br.call(t, "__wrapped__");
    if (h || O) {
      var S = h ? e.value() : e, w = O ? t.value() : t;
      return o || (o = new la()), n(S, w, a, r, o);
    }
  }
  return m ? (o || (o = new la()), Dg(e, t, a, r, n, o)) : !1;
}
var Ng = Mg, Vg = Ng, Ir = Oe;
function sl(e, t, a, r, n) {
  return e === t ? !0 : e == null || t == null || !Ir(e) && !Ir(t) ? e !== e && t !== t : Vg(e, t, a, r, sl, n);
}
var ja = sl, Lg = ja;
function Ug(e, t) {
  return Lg(e, t);
}
var Rg = Ug;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var zg = Me, Kg = Oe, Hg = "[object Symbol]";
function qg(e) {
  return ce(e) == "symbol" || Kg(e) && zg(e) == Hg;
}
var Ma = qg;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Gg(e, t) {
  for (var a = -1, r = e == null ? 0 : e.length, n = Array(r); ++a < r; )
    n[a] = t(e[a], a, e);
  return n;
}
var cl = Gg, jr = Xe, Yg = cl, Wg = _e, Zg = Ma, Xg = 1 / 0, Mr = jr ? jr.prototype : void 0, Nr = Mr ? Mr.toString : void 0;
function dl(e) {
  if (typeof e == "string")
    return e;
  if (Wg(e))
    return Yg(e, dl) + "";
  if (Zg(e))
    return Nr ? Nr.call(e) : "";
  var t = e + "";
  return t == "0" && 1 / e == -Xg ? "-0" : t;
}
var Jg = dl, Qg = Jg;
function eb(e) {
  return e == null ? "" : Qg(e);
}
var Ct = eb;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var tb = _e, ab = Ma, rb = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, nb = /^\w*$/;
function lb(e, t) {
  if (tb(e))
    return !1;
  var a = ce(e);
  return a == "number" || a == "symbol" || a == "boolean" || e == null || ab(e) ? !0 : nb.test(e) || !rb.test(e) || t != null && e in Object(t);
}
var Na = lb, fl = ka, ob = "Expected a function";
function Va(e, t) {
  if (typeof e != "function" || t != null && typeof t != "function")
    throw new TypeError(ob);
  var a = function r() {
    var n = arguments, o = t ? t.apply(this, n) : n[0], l = r.cache;
    if (l.has(o))
      return l.get(o);
    var u = e.apply(this, n);
    return r.cache = l.set(o, u) || l, u;
  };
  return a.cache = new (Va.Cache || fl)(), a;
}
Va.Cache = fl;
var ub = Va, ib = ub, sb = 500;
function cb(e) {
  var t = ib(e, function(r) {
    return a.size === sb && a.clear(), r;
  }), a = t.cache;
  return t;
}
var db = cb, fb = db, vb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, pb = /\\(\\)?/g, mb = fb(function(e) {
  var t = [];
  return e.charCodeAt(0) === 46 && t.push(""), e.replace(vb, function(a, r, n, o) {
    t.push(n ? o.replace(pb, "$1") : r || a);
  }), t;
}), yb = mb, gb = _e, bb = Na, hb = yb, _b = Ct;
function $b(e, t) {
  return gb(e) ? e : bb(e, t) ? [e] : hb(_b(e));
}
var Gt = $b, Cb = Ma, Ob = 1 / 0;
function Sb(e) {
  if (typeof e == "string" || Cb(e))
    return e;
  var t = e + "";
  return t == "0" && 1 / e == -Ob ? "-0" : t;
}
var Ot = Sb, Ab = Gt, wb = Ot;
function kb(e, t) {
  t = Ab(t, e);
  for (var a = 0, r = t.length; e != null && a < r; )
    e = e[wb(t[a++])];
  return a && a == r ? e : void 0;
}
var La = kb;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Eb = La;
function xb(e, t, a) {
  var r = e == null ? void 0 : Eb(e, t);
  return r === void 0 ? a : r;
}
var Tb = xb;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Pb(e, t) {
  return e != null && t in Object(e);
}
var Fb = Pb, Db = Gt, Bb = gt, Ib = _e, jb = Ta, Mb = Ea, Nb = Ot;
function Vb(e, t, a) {
  t = Db(t, e);
  for (var r = -1, n = t.length, o = !1; ++r < n; ) {
    var l = Nb(t[r]);
    if (!(o = e != null && a(e, l)))
      break;
    e = e[l];
  }
  return o || ++r != n ? o : (n = e == null ? 0 : e.length, !!n && Mb(n) && jb(l, n) && (Ib(e) || Bb(e)));
}
var Lb = Vb, Ub = Fb, Rb = Lb;
function zb(e, t) {
  return e != null && Rb(e, t, Ub);
}
var Kb = zb;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Hb(e) {
  return function(t) {
    return t == null ? void 0 : t[e];
  };
}
var qb = Hb;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Gb(e) {
  if (Array.isArray(e))
    return e;
}
function Yb(e, t) {
  var a = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
  if (a != null) {
    var r, n, o, l, u = [], s = !0, c = !1;
    try {
      if (o = (a = a.call(e)).next, t === 0) {
        if (Object(a) !== a)
          return;
        s = !1;
      } else
        for (; !(s = (r = o.call(a)).done) && (u.push(r.value), u.length !== t); s = !0)
          ;
    } catch (f) {
      c = !0, n = f;
    } finally {
      try {
        if (!s && a.return != null && (l = a.return(), Object(l) !== l))
          return;
      } finally {
        if (c)
          throw n;
      }
    }
    return u;
  }
}
function Wb() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function Zb(e, t) {
  return Gb(e) || Yb(e, t) || wn(e, t) || Wb();
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Vr(e, t) {
  var a = Object.keys(t);
  a.forEach(function(r) {
    e.style[r] = t[r];
  });
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Xb = Me, Jb = _e, Qb = Oe, eh = "[object String]";
function th(e) {
  return typeof e == "string" || !Jb(e) && Qb(e) && Xb(e) == eh;
}
var Ue = th;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function ah() {
  if (typeof navigator > "u" || !navigator)
    return Number.MAX_SAFE_INTEGER;
  var e = navigator, t = e.userAgent, a = t.indexOf("compatible") > -1 && t.indexOf("MSIE") > -1, r = t.indexOf("Trident") > -1 && t.indexOf("rv:11.0") > -1;
  if (a) {
    var n = new RegExp("MSIE (\\d+\\.\\d+);"), o = t.match(n);
    if (!o)
      return -1;
    var l = parseFloat(o[1]);
    return l < 7 ? 6 : l;
  }
  return r ? 11 : Number.MAX_SAFE_INTEGER;
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Lr(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function Et(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? Lr(Object(a), !0).forEach(function(r) {
      re(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Lr(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
function rh(e) {
  var t, a, r, n = {};
  if (!(!e || typeof window > "u")) {
    var o = (t = window) === null || t === void 0 || (a = t.getComputedStyle) === null || a === void 0 ? void 0 : a.call(t, e), l = o.color, u = o.fontSize, s = (r = window) === null || r === void 0 || (r = r.navigator) === null || r === void 0 ? void 0 : r.userAgent, c = /Safari/.test(s) && !/Chrome/.test(s), f = /(?=.*iPhone)[?=.*MicroMessenger]/.test(s) && !/Chrome/.test(s);
    if ((c || f) && (n = {
      transformOrigin: "0px 0px",
      transform: "scale(".concat(parseInt(u, 10) / 12, ")")
    }), l && ah() > 11) {
      var p = l.match(/[\d.]+/g), m = p ? "rgba(".concat(p[0], ", ").concat(p[1], ", ").concat(p[2], ", 0)") : "";
      Vr(e, Et(Et({}, n), {}, {
        background: "conic-gradient(from 90deg at 50% 50%,".concat(m, " 0deg, ").concat(l, " 360deg)")
      }));
    } else
      Vr(e, Et(Et({}, n), {}, {
        background: ""
      }));
  }
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var nh = L();
function St() {
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0, t = arguments.length > 1 ? arguments[1] : void 0, a = pt() ? Sn(yv, null) : nh, r = j(function() {
    return (a == null ? void 0 : a.value) || mv;
  }), n = j(function() {
    return Object.assign({}, r.value[e], t);
  }), o = j(function() {
    return r.value.classPrefix;
  }), l = function(s) {
    for (var c = arguments.length, f = new Array(c > 1 ? c - 1 : 0), p = 1; p < c; p++)
      f[p - 1] = arguments[p];
    var m = f[0];
    if (Ue(s)) {
      if (!m)
        return s;
      var h = /\{\s*([\w-]+)\s*\}/g, O = s.replace(h, function(S, w) {
        return m ? String(m[w]) : "";
      });
      return O;
    }
    return Ae(s) ? f.length ? s.apply(void 0, f) : s(je) : "";
  };
  return {
    t: l,
    global: n,
    globalConfig: n,
    classPrefix: o
  };
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function ie(e) {
  var t = St("classPrefix"), a = t.classPrefix;
  return j(function() {
    return e ? "".concat(a.value, "-").concat(e) : a.value;
  });
}
function vl() {
  var e = St("classPrefix"), t = e.classPrefix;
  return {
    SIZE: j(function() {
      return {
        small: "".concat(t.value, "-size-s"),
        medium: "".concat(t.value, "-size-m"),
        large: "".concat(t.value, "-size-l"),
        default: "",
        xs: "".concat(t.value, "-size-xs"),
        xl: "".concat(t.value, "-size-xl"),
        block: "".concat(t.value, "-size-full-width")
      };
    }),
    STATUS: j(function() {
      return {
        loading: "".concat(t.value, "-is-loading"),
        loadMore: "".concat(t.value, "-is-load-more"),
        disabled: "".concat(t.value, "-is-disabled"),
        focused: "".concat(t.value, "-is-focused"),
        success: "".concat(t.value, "-is-success"),
        error: "".concat(t.value, "-is-error"),
        warning: "".concat(t.value, "-is-warning"),
        selected: "".concat(t.value, "-is-selected"),
        active: "".concat(t.value, "-is-active"),
        checked: "".concat(t.value, "-is-checked"),
        current: "".concat(t.value, "-is-current"),
        hidden: "".concat(t.value, "-is-hidden"),
        visible: "".concat(t.value, "-is-visible"),
        expanded: "".concat(t.value, "-is-expanded"),
        indeterminate: "".concat(t.value, "-is-indeterminate")
      };
    })
  };
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var lh = ae({
  name: "TLoadingGradient",
  setup: function() {
    var t = ie();
    return ge(function() {
      var a = pt().refs.circle;
      mt(function() {
        rh(a);
      });
    }), {
      classPrefix: t
    };
  },
  render: function() {
    var t = this.classPrefix, a = "".concat(t, "-loading__gradient"), r = [a, "".concat(t, "-icon-loading")];
    return _("svg", {
      class: r,
      viewBox: "0 0 12 12",
      version: "1.1",
      width: "1em",
      height: "1em",
      xmlns: "http://www.w3.org/2000/svg"
    }, [_("foreignObject", {
      x: "0",
      y: "0",
      width: "12",
      height: "12"
    }, [_("div", {
      class: "".concat(a, "-conic"),
      ref: "circle"
    }, null)])]);
  }
});
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Ua = { exports: {} }, st = { exports: {} };
(function() {
  var e, t, a, r, n, o;
  typeof performance < "u" && performance !== null && performance.now ? st.exports = function() {
    return performance.now();
  } : typeof process < "u" && process !== null && process.hrtime ? (st.exports = function() {
    return (e() - n) / 1e6;
  }, t = process.hrtime, e = function() {
    var u;
    return u = t(), u[0] * 1e9 + u[1];
  }, r = e(), o = process.uptime() * 1e9, n = r - o) : Date.now ? (st.exports = function() {
    return Date.now() - a;
  }, a = Date.now()) : (st.exports = function() {
    return (/* @__PURE__ */ new Date()).getTime() - a;
  }, a = (/* @__PURE__ */ new Date()).getTime());
}).call(De);
var oh = st.exports, Te = typeof window > "u" ? De : window, xt = ["moz", "webkit"], Ye = "AnimationFrame", Ze = Te["request" + Ye], vt = Te["cancel" + Ye] || Te["cancelRequest" + Ye];
for (var it = 0; !Ze && it < xt.length; it++)
  Ze = Te[xt[it] + "Request" + Ye], vt = Te[xt[it] + "Cancel" + Ye] || Te[xt[it] + "CancelRequest" + Ye];
if (!Ze || !vt) {
  var oa = 0, Ur = 0, Ne = [], uh = 1e3 / 60;
  Ze = function(t) {
    if (Ne.length === 0) {
      var a = oh(), r = Math.max(0, uh - (a - oa));
      oa = r + a, setTimeout(function() {
        var n = Ne.slice(0);
        Ne.length = 0;
        for (var o = function() {
          if (!n[l].cancelled)
            try {
              n[l].callback(oa);
            } catch (s) {
              setTimeout(function() {
                throw s;
              }, 0);
            }
        }, l = 0; l < n.length; l++)
          o();
      }, Math.round(r));
    }
    return Ne.push({
      handle: ++Ur,
      callback: t,
      cancelled: !1
    }), Ur;
  }, vt = function(t) {
    for (var a = 0; a < Ne.length; a++)
      Ne[a].handle === t && (Ne[a].cancelled = !0);
  };
}
Ua.exports = function(e) {
  return Ze.call(Te, e);
};
Ua.exports.cancel = function() {
  vt.apply(Te, arguments);
};
Ua.exports.polyfill = function(e) {
  e || (e = Te), e.requestAnimationFrame = Ze, e.cancelAnimationFrame = vt;
};
var ih = function(t) {
  return (t || "").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, "");
};
function pl(e, t) {
  if (!e || !t)
    return !1;
  if (t.indexOf(" ") !== -1)
    throw new Error("className should not contain space.");
  return e.classList ? e.classList.contains(t) : " ".concat(e.className, " ").indexOf(" ".concat(t, " ")) > -1;
}
function ml(e, t) {
  if (e) {
    for (var a = e.className, r = (t || "").split(" "), n = 0, o = r.length; n < o; n++) {
      var l = r[n];
      l && (e.classList ? e.classList.add(l) : pl(e, l) || (a += " ".concat(l)));
    }
    e.classList || (e.className = a);
  }
}
function Bt(e, t) {
  if (!(!e || !t)) {
    for (var a = t.split(" "), r = " ".concat(e.className, " "), n = 0, o = a.length; n < o; n++) {
      var l = a[n];
      l && (e.classList ? e.classList.remove(l) : pl(e, l) && (r = r.replace(" ".concat(l, " "), " ")));
    }
    e.classList || (e.className = ih(r));
  }
}
var Yt = function(t, a) {
  var r = Ae(t) ? t(a) : t;
  return r ? Ue(r) ? document.querySelector(r) : r instanceof HTMLElement ? r : document.body : document.body;
}, sh = function() {
  if (process.env.NODE_ENV === "test-snap")
    return "body";
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var ch = Jn, dh = _t, fh = gt, vh = _e, ph = bt, mh = Be.exports, yh = Kt, gh = zt, bh = "[object Map]", hh = "[object Set]", _h = Object.prototype, $h = _h.hasOwnProperty;
function Ch(e) {
  if (e == null)
    return !0;
  if (ph(e) && (vh(e) || typeof e == "string" || typeof e.splice == "function" || mh(e) || gh(e) || fh(e)))
    return !e.length;
  var t = dh(e);
  if (t == bh || t == hh)
    return !e.size;
  if (yh(e))
    return !ch(e).length;
  for (var a in e)
    if ($h.call(e, a))
      return !1;
  return !0;
}
var Rr = Ch;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Oh(e, t, a) {
  var r = -1, n = e.length;
  t < 0 && (t = -t > n ? 0 : n + t), a = a > n ? n : a, a < 0 && (a += n), n = t > a ? 0 : a - t >>> 0, t >>>= 0;
  for (var o = Array(n); ++r < n; )
    o[r] = e[r + t];
  return o;
}
var yl = Oh;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Sh = yl;
function Ah(e, t, a) {
  var r = e.length;
  return a = a === void 0 ? r : a, !t && a >= r ? e : Sh(e, t, a);
}
var wh = Ah, kh = "\\ud800-\\udfff", Eh = "\\u0300-\\u036f", xh = "\\ufe20-\\ufe2f", Th = "\\u20d0-\\u20ff", Ph = Eh + xh + Th, Fh = "\\ufe0e\\ufe0f", Dh = "\\u200d", Bh = RegExp("[" + Dh + kh + Ph + Fh + "]");
function Ih(e) {
  return Bh.test(e);
}
var gl = Ih;
function jh(e) {
  return e.split("");
}
var Mh = jh, bl = "\\ud800-\\udfff", Nh = "\\u0300-\\u036f", Vh = "\\ufe20-\\ufe2f", Lh = "\\u20d0-\\u20ff", Uh = Nh + Vh + Lh, Rh = "\\ufe0e\\ufe0f", zh = "[" + bl + "]", ba = "[" + Uh + "]", ha = "\\ud83c[\\udffb-\\udfff]", Kh = "(?:" + ba + "|" + ha + ")", hl = "[^" + bl + "]", _l = "(?:\\ud83c[\\udde6-\\uddff]){2}", $l = "[\\ud800-\\udbff][\\udc00-\\udfff]", Hh = "\\u200d", Cl = Kh + "?", Ol = "[" + Rh + "]?", qh = "(?:" + Hh + "(?:" + [hl, _l, $l].join("|") + ")" + Ol + Cl + ")*", Gh = Ol + Cl + qh, Yh = "(?:" + [hl + ba + "?", ba, _l, $l, zh].join("|") + ")", Wh = RegExp(ha + "(?=" + ha + ")|" + Yh + Gh, "g");
function Zh(e) {
  return e.match(Wh) || [];
}
var Xh = Zh, Jh = Mh, Qh = gl, e1 = Xh;
function t1(e) {
  return Qh(e) ? e1(e) : Jh(e);
}
var a1 = t1;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function r1(e, t, a, r) {
  var n = -1, o = e == null ? 0 : e.length;
  for (r && o && (a = e[++n]); ++n < o; )
    a = t(a, e[n], n, e);
  return a;
}
var n1 = r1;
function l1(e) {
  return function(t) {
    return e == null ? void 0 : e[t];
  };
}
var o1 = l1, u1 = o1, i1 = {
  // Latin-1 Supplement block.
  À: "A",
  Á: "A",
  Â: "A",
  Ã: "A",
  Ä: "A",
  Å: "A",
  à: "a",
  á: "a",
  â: "a",
  ã: "a",
  ä: "a",
  å: "a",
  Ç: "C",
  ç: "c",
  Ð: "D",
  ð: "d",
  È: "E",
  É: "E",
  Ê: "E",
  Ë: "E",
  è: "e",
  é: "e",
  ê: "e",
  ë: "e",
  Ì: "I",
  Í: "I",
  Î: "I",
  Ï: "I",
  ì: "i",
  í: "i",
  î: "i",
  ï: "i",
  Ñ: "N",
  ñ: "n",
  Ò: "O",
  Ó: "O",
  Ô: "O",
  Õ: "O",
  Ö: "O",
  Ø: "O",
  ò: "o",
  ó: "o",
  ô: "o",
  õ: "o",
  ö: "o",
  ø: "o",
  Ù: "U",
  Ú: "U",
  Û: "U",
  Ü: "U",
  ù: "u",
  ú: "u",
  û: "u",
  ü: "u",
  Ý: "Y",
  ý: "y",
  ÿ: "y",
  Æ: "Ae",
  æ: "ae",
  Þ: "Th",
  þ: "th",
  ß: "ss",
  // Latin Extended-A block.
  Ā: "A",
  Ă: "A",
  Ą: "A",
  ā: "a",
  ă: "a",
  ą: "a",
  Ć: "C",
  Ĉ: "C",
  Ċ: "C",
  Č: "C",
  ć: "c",
  ĉ: "c",
  ċ: "c",
  č: "c",
  Ď: "D",
  Đ: "D",
  ď: "d",
  đ: "d",
  Ē: "E",
  Ĕ: "E",
  Ė: "E",
  Ę: "E",
  Ě: "E",
  ē: "e",
  ĕ: "e",
  ė: "e",
  ę: "e",
  ě: "e",
  Ĝ: "G",
  Ğ: "G",
  Ġ: "G",
  Ģ: "G",
  ĝ: "g",
  ğ: "g",
  ġ: "g",
  ģ: "g",
  Ĥ: "H",
  Ħ: "H",
  ĥ: "h",
  ħ: "h",
  Ĩ: "I",
  Ī: "I",
  Ĭ: "I",
  Į: "I",
  İ: "I",
  ĩ: "i",
  ī: "i",
  ĭ: "i",
  į: "i",
  ı: "i",
  Ĵ: "J",
  ĵ: "j",
  Ķ: "K",
  ķ: "k",
  ĸ: "k",
  Ĺ: "L",
  Ļ: "L",
  Ľ: "L",
  Ŀ: "L",
  Ł: "L",
  ĺ: "l",
  ļ: "l",
  ľ: "l",
  ŀ: "l",
  ł: "l",
  Ń: "N",
  Ņ: "N",
  Ň: "N",
  Ŋ: "N",
  ń: "n",
  ņ: "n",
  ň: "n",
  ŋ: "n",
  Ō: "O",
  Ŏ: "O",
  Ő: "O",
  ō: "o",
  ŏ: "o",
  ő: "o",
  Ŕ: "R",
  Ŗ: "R",
  Ř: "R",
  ŕ: "r",
  ŗ: "r",
  ř: "r",
  Ś: "S",
  Ŝ: "S",
  Ş: "S",
  Š: "S",
  ś: "s",
  ŝ: "s",
  ş: "s",
  š: "s",
  Ţ: "T",
  Ť: "T",
  Ŧ: "T",
  ţ: "t",
  ť: "t",
  ŧ: "t",
  Ũ: "U",
  Ū: "U",
  Ŭ: "U",
  Ů: "U",
  Ű: "U",
  Ų: "U",
  ũ: "u",
  ū: "u",
  ŭ: "u",
  ů: "u",
  ű: "u",
  ų: "u",
  Ŵ: "W",
  ŵ: "w",
  Ŷ: "Y",
  ŷ: "y",
  Ÿ: "Y",
  Ź: "Z",
  Ż: "Z",
  Ž: "Z",
  ź: "z",
  ż: "z",
  ž: "z",
  Ĳ: "IJ",
  ĳ: "ij",
  Œ: "Oe",
  œ: "oe",
  ŉ: "'n",
  ſ: "s"
}, s1 = u1(i1), c1 = s1, d1 = c1, f1 = Ct, v1 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, p1 = "\\u0300-\\u036f", m1 = "\\ufe20-\\ufe2f", y1 = "\\u20d0-\\u20ff", g1 = p1 + m1 + y1, b1 = "[" + g1 + "]", h1 = RegExp(b1, "g");
function _1(e) {
  return e = f1(e), e && e.replace(v1, d1).replace(h1, "");
}
var $1 = _1, C1 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
function O1(e) {
  return e.match(C1) || [];
}
var S1 = O1, A1 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
function w1(e) {
  return A1.test(e);
}
var k1 = w1, Sl = "\\ud800-\\udfff", E1 = "\\u0300-\\u036f", x1 = "\\ufe20-\\ufe2f", T1 = "\\u20d0-\\u20ff", P1 = E1 + x1 + T1, Al = "\\u2700-\\u27bf", wl = "a-z\\xdf-\\xf6\\xf8-\\xff", F1 = "\\xac\\xb1\\xd7\\xf7", D1 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", B1 = "\\u2000-\\u206f", I1 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", kl = "A-Z\\xc0-\\xd6\\xd8-\\xde", j1 = "\\ufe0e\\ufe0f", El = F1 + D1 + B1 + I1, xl = "['’]", zr = "[" + El + "]", M1 = "[" + P1 + "]", Tl = "\\d+", N1 = "[" + Al + "]", Pl = "[" + wl + "]", Fl = "[^" + Sl + El + Tl + Al + wl + kl + "]", V1 = "\\ud83c[\\udffb-\\udfff]", L1 = "(?:" + M1 + "|" + V1 + ")", U1 = "[^" + Sl + "]", Dl = "(?:\\ud83c[\\udde6-\\uddff]){2}", Bl = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ge = "[" + kl + "]", R1 = "\\u200d", Kr = "(?:" + Pl + "|" + Fl + ")", z1 = "(?:" + Ge + "|" + Fl + ")", Hr = "(?:" + xl + "(?:d|ll|m|re|s|t|ve))?", qr = "(?:" + xl + "(?:D|LL|M|RE|S|T|VE))?", Il = L1 + "?", jl = "[" + j1 + "]?", K1 = "(?:" + R1 + "(?:" + [U1, Dl, Bl].join("|") + ")" + jl + Il + ")*", H1 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", q1 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", G1 = jl + Il + K1, Y1 = "(?:" + [N1, Dl, Bl].join("|") + ")" + G1, W1 = RegExp([Ge + "?" + Pl + "+" + Hr + "(?=" + [zr, Ge, "$"].join("|") + ")", z1 + "+" + qr + "(?=" + [zr, Ge + Kr, "$"].join("|") + ")", Ge + "?" + Kr + "+" + Hr, Ge + "+" + qr, q1, H1, Tl, Y1].join("|"), "g");
function Z1(e) {
  return e.match(W1) || [];
}
var X1 = Z1, J1 = S1, Q1 = k1, e0 = Ct, t0 = X1;
function a0(e, t, a) {
  return e = e0(e), t = a ? void 0 : t, t === void 0 ? Q1(e) ? t0(e) : J1(e) : e.match(t) || [];
}
var r0 = a0, n0 = n1, l0 = $1, o0 = r0, u0 = "['’]", i0 = RegExp(u0, "g");
function s0(e) {
  return function(t) {
    return n0(o0(l0(t).replace(i0, "")), e, "");
  };
}
var Ml = s0;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var c0 = wh, d0 = gl, f0 = a1, v0 = Ct;
function p0(e) {
  return function(t) {
    t = v0(t);
    var a = d0(t) ? f0(t) : void 0, r = a ? a[0] : t.charAt(0), n = a ? c0(a, 1).join("") : t.slice(1);
    return r[e]() + n;
  };
}
var m0 = p0, y0 = m0, g0 = y0("toUpperCase"), b0 = g0, h0 = Ct, _0 = b0;
function $0(e) {
  return _0(h0(e).toLowerCase());
}
var C0 = $0, O0 = C0, S0 = Ml, A0 = S0(function(e, t, a) {
  return t = t.toLowerCase(), e + (a ? O0(t) : t);
}), Wt = A0;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var w0 = Ml, k0 = w0(function(e, t, a) {
  return e + (a ? "-" : "") + t.toLowerCase();
}), Zt = k0;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Xt(e) {
  var t;
  return ve(e) && "defaultNode" in e ? t = e.defaultNode : (co(e) || Ue(e)) && (t = e), t;
}
function Jt(e) {
  return ve(e) && "params" in e ? e.params : {};
}
function E0(e) {
  return ve(e) && "slotFirst" in e ? e.slotFirst : {};
}
function Gr(e, t, a) {
  var r, n, o, l, u = (r = (n = e.$slots)[Wt(a)]) === null || r === void 0 ? void 0 : r.call(n, t);
  return u || (u = (o = (l = e.$slots)[Zt(a)]) === null || o === void 0 ? void 0 : o.call(l, t), u) ? u : null;
}
var It = function(t, a, r) {
  var n = Jt(r), o = Xt(r), l;
  if (a in t && (l = t[a]), !(l === !1 || l === null)) {
    if (l === !0 && o)
      return Gr(t, n, a) || o;
    if (Ae(l))
      return l(je, n);
    var u = [void 0, n, ""].includes(l);
    return u && (t.$slots[Wt(a)] || t.$slots[Zt(a)]) ? Gr(t, n, a) : l;
  }
}, x0 = function(t, a, r, n) {
  var o = Jt(n), l = Xt(n), u = o ? {
    params: o
  } : void 0, s = It(t, a, u), c = It(t, r, u), f = Rr(s) ? c : s;
  return Rr(f) ? l : f;
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var T0 = {
  attach: {
    type: [String, Function],
    default: ""
  },
  content: {
    type: [String, Function]
  },
  default: {
    type: [String, Function]
  },
  delay: {
    type: Number,
    default: 0
  },
  fullscreen: Boolean,
  indicator: {
    type: [Boolean, Function],
    default: !0
  },
  inheritColor: Boolean,
  loading: {
    type: Boolean,
    default: !0
  },
  preventScrollThrough: {
    type: Boolean,
    default: !0
  },
  showOverlay: {
    type: Boolean,
    default: !0
  },
  size: {
    type: String,
    default: "medium"
  },
  text: {
    type: [String, Function]
  },
  zIndex: {
    type: Number
  }
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Nl = function(t, a) {
  var r = Ae(t) ? j(t) : L(t), n = Ae(a) ? j(a) : L(a), o = L(), l = function() {
    o.value = sh() || Yt(r.value, n.value);
  };
  return ge(function() {
    return l();
  }), se([r, n], function() {
    return l();
  }), o;
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var P0 = function() {
  return {
    name: ie("loading"),
    centerClass: ie("loading--center"),
    fullscreenClass: ie("loading__fullscreen"),
    lockClass: ie("loading--lock"),
    overlayClass: ie("loading__overlay"),
    relativeClass: ie("loading__parent"),
    fullClass: ie("loading--full"),
    inheritColorClass: ie("loading--inherit-color")
  };
}, _a = ae({
  name: "TLoading",
  inheritAttrs: !1,
  props: T0,
  setup: function(t, a) {
    var r = a.slots, n = L(!1), o = P0(), l = o.name, u = o.centerClass, s = o.fullscreenClass, c = o.lockClass, f = o.overlayClass, p = o.relativeClass, m = o.fullClass, h = o.inheritColorClass, O = ie(), S = vl(), w = S.SIZE, T = function() {
      n.value = !1;
      var g = setTimeout(function() {
        n.value = !0, clearTimeout(g);
      }, t.delay);
    }, $ = Nl(function() {
      return t.attach;
    }), C = j(function() {
      return !!(!t.delay || t.delay && n.value);
    }), z = j(function() {
      var d = {};
      return t.zIndex !== void 0 && (d.zIndex = t.zIndex), ["small", "medium", "large"].includes(t.size) || (d["font-size"] = t.size), d;
    }), G = j(function() {
      return !!(t.default || r.default || t.content || r.content);
    }), P = j(function() {
      return t.preventScrollThrough && t.fullscreen;
    }), q = j(function() {
      return !!(t.text || r.text);
    }), Y = j(function() {
      return G.value && t.loading && C.value;
    }), H = j(function() {
      return t.fullscreen && t.loading && C.value;
    }), I = j(function() {
      return t.attach && t.loading && C.value;
    }), N = j(function() {
      return t.attach && t.loading && C.value;
    }), ye = j(function() {
      var d = [u.value, w.value[t.size], re({}, h.value, t.inheritColor)], g = [l.value, s.value, u.value, f.value];
      return {
        baseClasses: d,
        attachClasses: d.concat([l.value, m.value, re({}, f.value, t.showOverlay)]),
        withContentClasses: d.concat([l.value, m.value, re({}, f.value, t.showOverlay)]),
        fullScreenClasses: g,
        normalClasses: d.concat([l.value])
      };
    }), B = fo(t), V = B.loading;
    return se([V], function(d) {
      var g = Zb(d, 1), b = g[0];
      b ? (T(), P.value && ml(document.body, c.value)) : P.value && Bt(document.body, c.value);
    }), ge(function() {
      t.delay && T();
    }), {
      classPrefix: O,
      relativeClass: p,
      delayShowLoading: n,
      styles: z,
      showText: q,
      hasContent: G,
      classes: ye,
      lockFullscreen: P,
      showWrapLoading: Y,
      showNormalLoading: I,
      showFullScreenLoading: H,
      showAttachedLoading: N,
      teleportElement: $
    };
  },
  render: function() {
    var t = this, a = this.classes, r = a.fullScreenClasses, n = a.baseClasses, o = a.withContentClasses, l = a.attachClasses, u = a.normalClasses, s = _(lh, {
      size: this.size
    }, null), c = this.loading && It(this, "indicator", s), f = this.showText && _("div", {
      class: "".concat(this.classPrefix, "-loading__text")
    }, [It(this, "text")]);
    return this.fullscreen ? !this.showFullScreenLoading || !this.loading ? null : _(da, {
      disabled: !this.attach || !this.teleportElement,
      to: this.teleportElement
    }, {
      default: function() {
        return [_("div", E({
          class: r,
          style: t.styles
        }, t.$attrs), [_("div", {
          class: n
        }, [c, f])])];
      }
    }) : this.hasContent ? _("div", E({
      class: this.relativeClass
    }, this.$attrs), [x0(this, "default", "content"), this.showWrapLoading && _("div", {
      class: o,
      style: this.styles
    }, [c, f])]) : this.attach ? !this.showAttachedLoading || !this.loading ? null : _(da, {
      disabled: !this.attach || !this.teleportElement,
      to: this.teleportElement
    }, {
      default: function() {
        return [_("div", E({
          class: l,
          style: t.styles
        }, t.$attrs), [c, f])];
      }
    }) : this.loading ? _("div", E({
      class: u,
      style: this.styles
    }, this.$attrs), [c, f]) : null;
  }
});
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Yr(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function F0(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? Yr(Object(a), !0).forEach(function(r) {
      re(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Yr(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var Tt = null;
function Wr(e) {
  var t = ae({
    setup: function() {
      var c = vo(e);
      return {
        loadingOptions: c
      };
    },
    render: function() {
      return je(_a, F0({}, this.loadingOptions));
    }
  }), a = Yt(e.attach), r = Aa(t), n = r.mount(document.createElement("div")), o = ie("loading__parent--relative").value, l = ie("loading");
  a ? ml(a, o) : console.error("attach is not exist");
  var u = {
    hide: function() {
      var c;
      n.loading = !1, (c = a.querySelectorAll(".".concat(l.value))) === null || c === void 0 || c.forEach(function(f) {
        f.remove();
      }), Bt(a, o), r.unmount();
    }
  };
  return u;
}
function Vl(e) {
  var t = ie("loading--lock");
  if (e === !0)
    return Tt = Wr({
      fullscreen: !0,
      loading: !0,
      attach: "body"
    }), Tt;
  if (Bt(document.body, t.value), e === !1) {
    Bt(document.body, t.value), Tt.hide(), Tt = null;
    return;
  }
  return Wr(e);
}
var Ll = Vl;
Ll.install = function(e) {
  e.config.globalProperties.$loading = Vl;
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var D0 = qn, B0 = $t;
function I0(e, t) {
  return e && D0(e, t, B0);
}
var j0 = I0, M0 = Ht, N0 = ja, V0 = 1, L0 = 2;
function U0(e, t, a, r) {
  var n = a.length, o = n, l = !r;
  if (e == null)
    return !o;
  for (e = Object(e); n--; ) {
    var u = a[n];
    if (l && u[2] ? u[1] !== e[u[0]] : !(u[0] in e))
      return !1;
  }
  for (; ++n < o; ) {
    u = a[n];
    var s = u[0], c = e[s], f = u[1];
    if (l && u[2]) {
      if (c === void 0 && !(s in e))
        return !1;
    } else {
      var p = new M0();
      if (r)
        var m = r(c, f, s, e, t, p);
      if (!(m === void 0 ? N0(f, c, V0 | L0, r, p) : m))
        return !1;
    }
  }
  return !0;
}
var R0 = U0, z0 = ve;
function K0(e) {
  return e === e && !z0(e);
}
var Ul = K0, H0 = Ul, q0 = $t;
function G0(e) {
  for (var t = q0(e), a = t.length; a--; ) {
    var r = t[a], n = e[r];
    t[a] = [r, n, H0(n)];
  }
  return t;
}
var Y0 = G0;
function W0(e, t) {
  return function(a) {
    return a == null ? !1 : a[e] === t && (t !== void 0 || e in Object(a));
  };
}
var Rl = W0, Z0 = R0, X0 = Y0, J0 = Rl;
function Q0(e) {
  var t = X0(e);
  return t.length == 1 && t[0][2] ? J0(t[0][0], t[0][1]) : function(a) {
    return a === e || Z0(a, e, t);
  };
}
var e_ = Q0, t_ = ja, a_ = Tb, r_ = Kb, n_ = Na, l_ = Ul, o_ = Rl, u_ = Ot, i_ = 1, s_ = 2;
function c_(e, t) {
  return n_(e) && l_(t) ? o_(u_(e), t) : function(a) {
    var r = a_(a, e);
    return r === void 0 && r === t ? r_(a, e) : t_(t, r, i_ | s_);
  };
}
var d_ = c_, f_ = La;
function v_(e) {
  return function(t) {
    return f_(t, e);
  };
}
var p_ = v_, m_ = qb, y_ = p_, g_ = Na, b_ = Ot;
function h_(e) {
  return g_(e) ? m_(b_(e)) : y_(e);
}
var __ = h_, $_ = e_, C_ = d_, O_ = Da, S_ = _e, A_ = __;
function w_(e) {
  return typeof e == "function" ? e : e == null ? O_ : ce(e) == "object" ? S_(e) ? C_(e[0], e[1]) : $_(e) : A_(e);
}
var k_ = w_, E_ = Nt, x_ = j0, T_ = k_;
function P_(e, t) {
  var a = {};
  return t = T_(t), x_(e, function(r, n, o) {
    E_(a, t(r, n, o), r);
  }), a;
}
var F_ = P_, $a = Symbol("TdLoading"), Zr = function(t, a) {
  var r = a.modifiers, n = r.fullscreen, o = r.inheritColor, l = {
    attach: function() {
      return t;
    },
    fullscreen: n ?? !1,
    inheritColor: o ?? !1,
    loading: a.value
  };
  ve(a.value) && F_(a.value, function(u, s) {
    l[s] = u;
  }), t[$a] = {
    options: l,
    instance: Ll(l)
  };
}, D_ = {
  mounted: function(t, a) {
    a.value && Zr(t, a);
  },
  updated: function(t, a) {
    var r = t[$a], n = a.value, o = a.oldValue;
    if (!Rg(n, o)) {
      var l, u = (l = n == null ? void 0 : n.loading) !== null && l !== void 0 ? l : n;
      u ? Zr(t, a) : r == null || r.instance.hide();
    }
  },
  unmounted: function(t) {
    var a;
    (a = t[$a]) === null || a === void 0 || a.instance.hide();
  }
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function zl(e, t, a) {
  var r = e;
  return r.install = function(n, o) {
    n.component(t || o || r.name, e), a && n.directive(a.name, a.comp);
  }, r;
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Kl = zl(_a, _a.name, {
  name: "loading",
  comp: D_
});
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var B_ = {
  block: Boolean,
  content: {
    type: [String, Function]
  },
  default: {
    type: [String, Function]
  },
  disabled: {
    type: Boolean,
    default: void 0
  },
  ghost: Boolean,
  href: {
    type: String,
    default: ""
  },
  icon: {
    type: Function
  },
  loading: Boolean,
  shape: {
    type: String,
    default: "rectangle",
    validator: function(t) {
      return t ? ["rectangle", "square", "round", "circle"].includes(t) : !0;
    }
  },
  size: {
    type: String,
    default: "medium",
    validator: function(t) {
      return t ? ["extra-small", "small", "medium", "large"].includes(t) : !0;
    }
  },
  suffix: {
    type: Function
  },
  tag: {
    type: String,
    validator: function(t) {
      return t ? ["button", "a", "div"].includes(t) : !0;
    }
  },
  theme: {
    type: String,
    validator: function(t) {
      return t ? ["default", "primary", "danger", "warning", "success"].includes(t) : !0;
    }
  },
  type: {
    type: String,
    default: "button",
    validator: function(t) {
      return t ? ["submit", "reset", "button"].includes(t) : !0;
    }
  },
  variant: {
    type: String,
    default: "base",
    validator: function(t) {
      return t ? ["base", "outline", "dashed", "text"].includes(t) : !0;
    }
  },
  onClick: Function
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var I_ = qt.expand, j_ = qt.ripple, M_ = qt.fade;
function N_() {
  var e = St("animation"), t = e.globalConfig, a = function(n) {
    var o, l, u = t.value;
    return u && !((o = u.exclude) !== null && o !== void 0 && o.includes(n)) && ((l = u.include) === null || l === void 0 ? void 0 : l.includes(n));
  };
  return {
    keepExpand: a(I_),
    keepRipple: a(j_),
    keepFade: a(M_)
  };
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Xr(e, t) {
  var a = Object.keys(t);
  a.forEach(function(r) {
    e.style[r] = t[r];
  });
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var ua = 200, V_ = "rgba(0, 0, 0, 0)", L_ = "rgba(0, 0, 0, 0.35)", U_ = function(t, a) {
  var r;
  if (a)
    return a;
  if (t != null && (r = t.dataset) !== null && r !== void 0 && r.ripple) {
    var n = t.dataset.ripple;
    return n;
  }
  var o = getComputedStyle(t).getPropertyValue("--ripple-color");
  return o || L_;
};
function R_(e, t) {
  var a = L(null), r = ie(), n = N_(), o = n.keepRipple, l = function(s) {
    var c = e.value, f = U_(c, t == null ? void 0 : t.value);
    if (!(s.button !== 0 || !e || !o) && !(c.classList.contains("".concat(r.value, "-is-active")) || c.classList.contains("".concat(r.value, "-is-disabled")) || c.classList.contains("".concat(r.value, "-is-checked")) || c.classList.contains("".concat(r.value, "-is-loading")))) {
      var p = getComputedStyle(c), m = parseInt(p.borderWidth, 10), h = m > 0 ? m : 0, O = c.offsetWidth, S = c.offsetHeight;
      a.value.parentNode === null && (Xr(a.value, {
        position: "absolute",
        left: "".concat(0 - h, "px"),
        top: "".concat(0 - h, "px"),
        width: "".concat(O, "px"),
        height: "".concat(S, "px"),
        borderRadius: p.borderRadius,
        pointerEvents: "none",
        overflow: "hidden"
      }), c.appendChild(a.value));
      var w = document.createElement("div");
      Xr(w, {
        marginTop: "0",
        marginLeft: "0",
        right: "".concat(O, "px"),
        width: "".concat(O + 20, "px"),
        height: "100%",
        transition: "transform ".concat(ua, "ms cubic-bezier(.38, 0, .24, 1), background ").concat(ua * 2, "ms linear"),
        transform: "skewX(-8deg)",
        pointerEvents: "none",
        position: "absolute",
        zIndex: 0,
        backgroundColor: f,
        opacity: "0.9"
      });
      for (var T = /* @__PURE__ */ new WeakMap(), $ = c.children.length, C = 0; C < $; ++C) {
        var z = c.children[C];
        z.style.zIndex === "" && z !== a.value && (z.style.zIndex = "1", T.set(z, !0));
      }
      var G = c.style.position ? c.style.position : getComputedStyle(c).position;
      (G === "" || G === "static") && (c.style.position = "relative"), a.value.insertBefore(w, a.value.firstChild), setTimeout(function() {
        w.style.transform = "translateX(".concat(O, "px)");
      }, 0);
      var P = function q() {
        w.style.backgroundColor = V_, e.value && (e.value.removeEventListener("pointerup", q, !1), e.value.removeEventListener("pointerleave", q, !1), setTimeout(function() {
          w.remove(), a.value.children.length === 0 && a.value.remove();
        }, ua * 2 + 100));
      };
      e.value.addEventListener("pointerup", P, !1), e.value.addEventListener("pointerleave", P, !1);
    }
  };
  ge(function() {
    var u = e == null ? void 0 : e.value;
    u && (a.value = document.createElement("div"), u.addEventListener("pointerdown", l, !1));
  }), po(function() {
    var u;
    e == null || (u = e.value) === null || u === void 0 || u.removeEventListener("pointerdown", l, !1);
  });
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Jr(e, t, a) {
  var r, n, o, l, u = (r = (n = e.slots)[Wt(t)]) === null || r === void 0 ? void 0 : r.call(n, a);
  return u && u.filter(function(s) {
    return s.type.toString() !== "Symbol(v-cmt)";
  }).length || (u = (o = (l = e.slots)[Zt(t)]) === null || o === void 0 ? void 0 : o.call(l, a), u && u.filter(function(s) {
    return s.type.toString() !== "Symbol(v-cmt)";
  }).length) ? u : null;
}
function Qr(e) {
  if ([void 0, null, ""].includes(e))
    return !0;
  var t = e instanceof Array ? e : [e], a = t.filter(function(r) {
    var n;
    return (r == null || (n = r.type) === null || n === void 0 ? void 0 : n.toString()) !== "Symbol(Comment)";
  });
  return !a.length;
}
var At = function() {
  var t = pt();
  return function(a, r) {
    var n = Jt(r), o = Xt(r), l = E0(r), u;
    if (Object.keys(t.props).includes(a) && (u = t.props[a]), !(u === !1 || u === null)) {
      if (u === !0)
        return Jr(t, a, n) || o;
      if (Ae(u))
        return u(je, n);
      var s = [void 0, n, ""].includes(u);
      return (s || l) && (t.slots[Wt(a)] || t.slots[Zt(a)]) ? Jr(t, a, n) : u;
    }
  };
}, Ra = function() {
  var t = At();
  return function(a, r, n) {
    var o = Jt(n), l = Xt(n), u = o ? {
      params: o
    } : void 0, s = t(a, u), c = t(r, u), f = Qr(s) ? c : s;
    return Qr(f) ? l : f;
  };
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var z_ = Me, K_ = Oe, H_ = "[object Boolean]";
function q_(e) {
  return e === !0 || e === !1 || K_(e) && z_(e) == H_;
}
var Pt = q_;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function G_(e) {
  var t = pt(), a = j(function() {
    return t.props.disabled;
  }), r = Sn("formDisabled", /* @__PURE__ */ Object.create(null));
  return j(function() {
    var n;
    return Pt(e == null ? void 0 : e.beforeDisabled.value) ? e.beforeDisabled.value : Pt(a.value) ? a.value : Pt(e == null ? void 0 : e.afterDisabled.value) ? e.afterDisabled.value : Pt((n = r.disabled) === null || n === void 0 ? void 0 : n.value) ? r.disabled.value : !1;
  });
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function en(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function ia(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? en(Object(a), !0).forEach(function(r) {
      re(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : en(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var Y_ = ae({
  name: "TButton",
  props: B_,
  setup: function(t, a) {
    var r = a.attrs, n = a.slots, o = At(), l = Ra(), u = ie("button"), s = vl(), c = s.STATUS, f = s.SIZE, p = L();
    R_(p);
    var m = G_(), h = j(function() {
      var S = t.theme, w = t.variant;
      return S || (w === "base" ? "primary" : "default");
    }), O = j(function() {
      return ["".concat(u.value), "".concat(u.value, "--variant-").concat(t.variant), "".concat(u.value, "--theme-").concat(h.value), re(re(re(re(re(re({}, f.value[t.size], t.size !== "medium"), c.value.disabled, m.value), c.value.loading, t.loading), "".concat(u.value, "--shape-").concat(t.shape), t.shape !== "rectangle"), "".concat(u.value, "--ghost"), t.ghost), f.value.block, t.block)];
    });
    return function() {
      var S = l("default", "content"), w = t.loading ? _(Kl, {
        inheritColor: !0
      }, null) : o("icon"), T = w && !S, $ = t.suffix || n.suffix ? _("span", {
        className: "".concat(u.value, "__suffix")
      }, [o("suffix")]) : null;
      S = S ? _("span", {
        class: "".concat(u.value, "__text")
      }, [S]) : "", w && (S = [w, S]), $ && (S = [S].concat($));
      var C = function() {
        return !t.tag && t.href ? "a" : t.tag || "button";
      }, z = {
        class: [].concat(kn(O.value), [re({}, "".concat(u.value, "--icon-only"), T)]),
        type: t.type,
        disabled: m.value || t.loading,
        href: t.href,
        tabindex: m.value ? void 0 : "0"
      };
      return je(C(), ia(ia(ia({
        ref: p
      }, r), z), {}, {
        onClick: t.onClick
      }), [S]);
    };
  }
});
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var sa = zl(Y_);
function nt(e, t, a) {
  return t in e ? Object.defineProperty(e, t, {
    value: a,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[t] = a, e;
}
function tn(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function an(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? tn(Object(a), !0).forEach(function(r) {
      nt(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : tn(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
function W_(e) {
  var t = ["fillOpacity", "fillRule", "clipRule"];
  return t.includes(e) ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : e;
}
function lt(e, t) {
  var a = Object.keys(e.attrs).reduce((r, n) => (r[W_(n)] = e.attrs[n], r), {});
  return je(e.tag, an(an({}, a), t), (e.children || []).map((r) => lt(r, {})));
}
var Z_ = "t", X_ = "zh-CN", J_ = {
  classPrefix: Z_,
  locale: X_
};
const Q_ = J_;
function e$() {
  var {
    classPrefix: e
  } = Q_;
  return {
    SIZE: {
      default: "",
      xs: "".concat(e, "-size-xs"),
      small: "".concat(e, "-size-s"),
      medium: "".concat(e, "-size-m"),
      large: "".concat(e, "-size-l"),
      xl: "".concat(e, "-size-xl"),
      block: "".concat(e, "-size-full-width")
    },
    STATUS: {
      loading: "".concat(e, "-is-loading"),
      disabled: "".concat(e, "-is-disabled"),
      focused: "".concat(e, "-is-focused"),
      success: "".concat(e, "-is-success"),
      error: "".concat(e, "-is-error"),
      warning: "".concat(e, "-is-warning"),
      selected: "".concat(e, "-is-selected"),
      active: "".concat(e, "-is-active"),
      checked: "".concat(e, "-is-checked"),
      current: "".concat(e, "-is-current"),
      hidden: "".concat(e, "-is-hidden"),
      visible: "".concat(e, "-is-visible"),
      expanded: "".concat(e, "-is-expanded"),
      indeterminate: "".concat(e, "-is-indeterminate")
    }
  };
}
function wt(e) {
  var t = e$().SIZE, a = j(() => e.value in t ? t[e.value] : ""), r = j(() => e.value === void 0 || e.value in t ? {} : {
    fontSize: e.value
  });
  return {
    style: r,
    className: a
  };
}
function rn(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function nn(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? rn(Object(a), !0).forEach(function(r) {
      nt(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : rn(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var t$ = {
  tag: "svg",
  attrs: {
    fill: "none",
    viewBox: "0 0 24 24",
    width: "1em",
    height: "1em"
  },
  children: [{
    tag: "path",
    attrs: {
      fill: "currentColor",
      d: "M12 23a11 11 0 100-22 11 11 0 000 22zM7.5 10.59l3 3 6-6L17.91 9l-7.41 7.41L6.09 12l1.41-1.41z"
    }
  }]
}, a$ = ae({
  name: "CheckCircleFilledIcon",
  props: {
    size: {
      type: String
    },
    onClick: {
      type: Function
    }
  },
  setup(e, t) {
    var {
      attrs: a
    } = t, r = j(() => e.size), {
      className: n,
      style: o
    } = wt(r), l = j(() => ["t-icon", "t-icon-check-circle-filled", n.value]), u = j(() => nn(nn({}, o.value), a.style)), s = j(() => ({
      class: l.value,
      style: u.value,
      onClick: (c) => {
        var f;
        return (f = e.onClick) === null || f === void 0 ? void 0 : f.call(e, {
          e: c
        });
      }
    }));
    return () => lt(t$, s.value);
  }
});
const Hl = a$;
function ln(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function on(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? ln(Object(a), !0).forEach(function(r) {
      nt(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : ln(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var r$ = {
  tag: "svg",
  attrs: {
    fill: "none",
    viewBox: "0 0 24 24",
    width: "1em",
    height: "1em"
  },
  children: [{
    tag: "path",
    attrs: {
      fill: "currentColor",
      d: "M7.05 5.64L12 10.59l4.95-4.95 1.41 1.41L13.41 12l4.95 4.95-1.41 1.41L12 13.41l-4.95 4.95-1.41-1.41L10.59 12 5.64 7.05l1.41-1.41z"
    }
  }]
}, n$ = ae({
  name: "CloseIcon",
  props: {
    size: {
      type: String
    },
    onClick: {
      type: Function
    }
  },
  setup(e, t) {
    var {
      attrs: a
    } = t, r = j(() => e.size), {
      className: n,
      style: o
    } = wt(r), l = j(() => ["t-icon", "t-icon-close", n.value]), u = j(() => on(on({}, o.value), a.style)), s = j(() => ({
      class: l.value,
      style: u.value,
      onClick: (c) => {
        var f;
        return (f = e.onClick) === null || f === void 0 ? void 0 : f.call(e, {
          e: c
        });
      }
    }));
    return () => lt(r$, s.value);
  }
});
const ql = n$;
function un(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function sn(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? un(Object(a), !0).forEach(function(r) {
      nt(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : un(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var l$ = {
  tag: "svg",
  attrs: {
    fill: "none",
    viewBox: "0 0 24 24",
    width: "1em",
    height: "1em"
  },
  children: [{
    tag: "path",
    attrs: {
      fill: "currentColor",
      d: "M12 1a11 11 0 110 22 11 11 0 010-22zm-1 13h2V6.5h-2V14zm2 1.5h-2v2h2v-2z"
    }
  }]
}, o$ = ae({
  name: "ErrorCircleFilledIcon",
  props: {
    size: {
      type: String
    },
    onClick: {
      type: Function
    }
  },
  setup(e, t) {
    var {
      attrs: a
    } = t, r = j(() => e.size), {
      className: n,
      style: o
    } = wt(r), l = j(() => ["t-icon", "t-icon-error-circle-filled", n.value]), u = j(() => sn(sn({}, o.value), a.style)), s = j(() => ({
      class: l.value,
      style: u.value,
      onClick: (c) => {
        var f;
        return (f = e.onClick) === null || f === void 0 ? void 0 : f.call(e, {
          e: c
        });
      }
    }));
    return () => lt(l$, s.value);
  }
});
const Gl = o$;
function cn(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function dn(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? cn(Object(a), !0).forEach(function(r) {
      nt(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : cn(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var u$ = {
  tag: "svg",
  attrs: {
    fill: "none",
    viewBox: "0 0 24 24",
    width: "1em",
    height: "1em"
  },
  children: [{
    tag: "path",
    attrs: {
      fill: "currentColor",
      d: "M12 23a11 11 0 100-22 11 11 0 000 22zm-.17-11.11c.43-.53.97-.97 1.4-1.32A2 2 0 0012 7a2 2 0 00-1.89 1.33l-.33.95L7.9 8.6l.34-.94a4 4 0 116.24 4.47 7 7 0 00-1.1 1.01c-.27.34-.37.61-.37.85v1.25h-2V14c0-.87.39-1.57.83-2.11zM11 18.25v-2h2v2h-2z"
    }
  }]
}, i$ = ae({
  name: "HelpCircleFilledIcon",
  props: {
    size: {
      type: String
    },
    onClick: {
      type: Function
    }
  },
  setup(e, t) {
    var {
      attrs: a
    } = t, r = j(() => e.size), {
      className: n,
      style: o
    } = wt(r), l = j(() => ["t-icon", "t-icon-help-circle-filled", n.value]), u = j(() => dn(dn({}, o.value), a.style)), s = j(() => ({
      class: l.value,
      style: u.value,
      onClick: (c) => {
        var f;
        return (f = e.onClick) === null || f === void 0 ? void 0 : f.call(e, {
          e: c
        });
      }
    }));
    return () => lt(u$, s.value);
  }
});
const s$ = i$;
function fn(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function vn(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? fn(Object(a), !0).forEach(function(r) {
      nt(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : fn(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var c$ = {
  tag: "svg",
  attrs: {
    fill: "none",
    viewBox: "0 0 24 24",
    width: "1em",
    height: "1em"
  },
  children: [{
    tag: "path",
    attrs: {
      fill: "currentColor",
      d: "M12 23a11 11 0 100-22 11 11 0 000 22zM11 8.5v-2h2v2h-2zm2 1.5v7.5h-2V10h2z"
    }
  }]
}, d$ = ae({
  name: "InfoCircleFilledIcon",
  props: {
    size: {
      type: String
    },
    onClick: {
      type: Function
    }
  },
  setup(e, t) {
    var {
      attrs: a
    } = t, r = j(() => e.size), {
      className: n,
      style: o
    } = wt(r), l = j(() => ["t-icon", "t-icon-info-circle-filled", n.value]), u = j(() => vn(vn({}, o.value), a.style)), s = j(() => ({
      class: l.value,
      style: u.value,
      onClick: (c) => {
        var f;
        return (f = e.onClick) === null || f === void 0 ? void 0 : f.call(e, {
          e: c
        });
      }
    }));
    return () => lt(c$, s.value);
  }
});
const Yl = d$;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var f$ = ["info", "success", "warning", "error", "question", "loading"], $e = "32px", Wl = {
  top: {
    top: $e,
    left: "50%",
    transform: "translateX(-50%)"
  },
  center: {
    left: "50%",
    top: "50%",
    transform: "translateX(-50%) translateY(-50%)"
  },
  left: {
    left: $e,
    top: "50%",
    transform: "translateY(-50%)"
  },
  bottom: {
    bottom: $e,
    left: "50%",
    transform: "translateX(-50%)"
  },
  right: {
    right: $e,
    top: "50%",
    transform: "translateY(-50%)",
    display: "flex",
    flexDirection: "column",
    alignItems: "flex-end"
  },
  "top-left": {
    left: $e,
    top: $e
  },
  "top-right": {
    right: $e,
    top: $e,
    display: "flex",
    flexDirection: "column",
    alignItems: "flex-end"
  },
  "bottom-right": {
    right: $e,
    bottom: $e,
    display: "flex",
    flexDirection: "column",
    alignItems: "flex-end"
  },
  "bottom-left": {
    left: $e,
    bottom: $e
  }
}, Zl = Object.keys(Wl);
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var v$ = {
  closeBtn: {
    type: [String, Boolean, Function],
    default: void 0
  },
  content: {
    type: [String, Function]
  },
  duration: {
    type: Number,
    default: 3e3
  },
  icon: {
    type: [Boolean, Function],
    default: !0
  },
  theme: {
    type: String,
    default: "info",
    validator: function(t) {
      return t ? ["info", "success", "warning", "error", "question", "loading"].includes(t) : !0;
    }
  },
  onClose: Function,
  onCloseBtnClick: Function,
  onDurationEnd: Function
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Xl(e) {
  var t = St("icon"), a = t.globalConfig, r = {};
  return Object.keys(e).forEach(function(n) {
    var o;
    r[n] = ((o = a.value) === null || o === void 0 ? void 0 : o[n]) || e[n];
  }), r;
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var Jl = {
  duration: 200,
  easing: "linear"
};
function p$(e, t) {
  if (e) {
    var a = (e == null ? void 0 : e.offsetWidth) || 0, r = (e == null ? void 0 : e.offsetHeight) || 0, n = y$(t, a, r);
    if (n) {
      var o = n[n.length - 1];
      Ql(e, o), e.animate && e.animate(n, Jl);
    }
  }
}
function m$(e, t, a) {
  if (e) {
    var r = (e == null ? void 0 : e.offsetHeight) || 0, n = g$(t, r);
    if (!n)
      return a();
    var o = n[n.length - 1];
    Ql(e, o);
    var l = e.animate && e.animate(n, Jl);
    l ? l.onfinish = function() {
      e.style.display = "none", a();
    } : (e.style.display = "none", a());
  }
}
function Ql(e, t) {
  for (var a = Object.keys(t), r = 0; r < a.length; r += 1) {
    var n = a[r];
    e.style[n] = t[n];
  }
}
function y$(e, t, a) {
  if (!Zl.includes(e))
    return null;
  if (["top-left", "left", "bottom-left"].includes(e))
    return [{
      opacity: 0,
      marginLeft: "-".concat(t, "px")
    }, {
      opacity: 1,
      marginLeft: "0"
    }];
  if (["top-right", "right", "bottom-right"].includes(e))
    return [{
      opacity: 0,
      marginRight: "-".concat(t, "px")
    }, {
      opacity: 1,
      marginRight: "0"
    }];
  if (["top", "center"].includes(e))
    return [{
      opacity: 0,
      marginTop: "-".concat(a, "px")
    }, {
      opacity: 1,
      marginTop: "0"
    }];
  if (["bottom"].includes(e))
    return [{
      opacity: 0,
      transform: "translate3d(0, ".concat(a, "px, 0)")
    }, {
      opacity: 1,
      transform: "translate3d(0, 0, 0)"
    }];
}
function g$(e, t) {
  if (!Zl.includes(e))
    return null;
  if (["bottom-left", "bottom", "bottom-right"].includes(e)) {
    var a = "".concat(t, "px");
    return [{
      opacity: 1,
      marginTop: "0px"
    }, {
      opacity: 0,
      marginTop: a
    }];
  }
  var r = "-".concat(t, "px");
  return [{
    opacity: 1,
    marginTop: "0px"
  }, {
    opacity: 0,
    marginTop: r
  }];
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function pn(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function mn(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? pn(Object(a), !0).forEach(function(r) {
      re(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : pn(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var b$ = ae({
  name: "TMessage",
  props: mn(mn({}, v$), {}, {
    placement: String
  }),
  setup: function(t, a) {
    var r = a.slots, n = a.expose, o = ie("message"), l = Xl({
      InfoCircleFilledIcon: Yl,
      CheckCircleFilledIcon: Hl,
      ErrorCircleFilledIcon: Gl,
      HelpCircleFilledIcon: s$,
      CloseIcon: ql
    }), u = l.InfoCircleFilledIcon, s = l.CheckCircleFilledIcon, c = l.ErrorCircleFilledIcon, f = l.HelpCircleFilledIcon, p = l.CloseIcon, m = ie(), h = At(), O = Ra(), S = L(null), w = L(null), T = j(function() {
      var q = {};
      return f$.forEach(function(Y) {
        return q["".concat(m.value, "-is-").concat(Y)] = t.theme === Y;
      }), [o.value, q, re({}, "".concat(m.value, "-is-closable"), t.closeBtn || r.closeBtn)];
    }), $ = function(Y) {
      var H, I;
      (H = t.onClose) === null || H === void 0 || H.call(t, {
        trigger: "close-click",
        e: Y
      }), (I = t.onCloseBtnClick) === null || I === void 0 || I.call(t, {
        e: Y
      });
    }, C = function() {
      t.duration && clearTimeout(w.value);
    }, z = function() {
      t.duration && (w.value = Number(setTimeout(function() {
        C();
        var Y = S.value;
        m$(Y, t.placement, function() {
          var H, I;
          (H = t.onClose) === null || H === void 0 || H.call(t, {
            trigger: "duration-end"
          }), (I = t.onDurationEnd) === null || I === void 0 || I.call(t);
        });
      }, t.duration)));
    }, G = function() {
      var Y = _(p, null, null);
      return _("span", {
        class: "".concat(o.value, "__close"),
        onClick: $
      }, [h("closeBtn", Y)]);
    }, P = function() {
      if (t.icon !== !1) {
        if (Ae(t.icon))
          return t.icon(je);
        if (r.icon)
          return r.icon(null);
        var Y = {
          info: u,
          success: s,
          warning: c,
          error: c,
          question: f,
          loading: Kl
        }[t.theme];
        return _(Y, null, null);
      }
    };
    return mo(function() {
      t.duration && z();
    }), ge(function() {
      var q = S.value;
      p$(q, t.placement);
    }), n({
      close: $
    }), function() {
      return _("div", {
        ref: S,
        class: T.value,
        onMouseenter: C,
        onMouseleave: z
      }, [P(), O("content", "default"), G()]);
    };
  }
});
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function yn(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function He(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? yn(Object(a), !0).forEach(function(r) {
      re(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : yn(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var Ca = 6e3, h$ = function() {
  var e = 0;
  return function() {
    return e += 1, e;
  };
}(), _$ = ae({
  name: "TMessageList",
  props: {
    zIndex: {
      type: Number,
      default: 0
    },
    placement: {
      type: String,
      default: ""
    }
  },
  setup: function(t, a) {
    var r = a.expose, n = ie("message__list"), o = L([]), l = L([]), u = j(function() {
      return He(He({}, Wl[t.placement]), {}, {
        zIndex: t.zIndex !== Ca ? t.zIndex : Ca
      });
    }), s = function(w) {
      var T = He(He({}, w), {}, {
        key: h$()
      });
      return o.value.push(T), T.key;
    }, c = function(w) {
      o.value.splice(w, 1);
    }, f = function() {
      o.value = [];
    }, p = function(w) {
      if (w)
        return isNaN(Number(w)) ? w : "".concat(w, "px");
    }, m = function(w) {
      return w.offset && {
        position: "relative",
        left: p(w.offset[0]),
        top: p(w.offset[1])
      };
    }, h = function(w, T) {
      return He(He({}, T), {}, {
        onCloseBtnClick: function(C) {
          return T.onCloseBtnClick && T.onCloseBtnClick(C), c(w);
        },
        onDurationEnd: function() {
          return T.onDurationEnd && T.onDurationEnd(), c(w);
        }
      });
    }, O = function(w) {
      w && l.value.push(w);
    };
    return r({
      add: s,
      removeAll: f,
      list: o,
      messageList: l
    }), function() {
      if (o.value.length)
        return _("div", {
          class: n.value,
          style: u.value
        }, [o.value.map(function(S, w) {
          return _(b$, E({
            key: S.key,
            style: m(S),
            ref: O
          }, h(w, S)), null);
        })]);
    };
  }
});
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function gn(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function Oa(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? gn(Object(a), !0).forEach(function(r) {
      re(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : gn(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var Le = /* @__PURE__ */ new Map();
function $$(e) {
  var t = Oa({
    duration: 3e3,
    attach: "body",
    zIndex: Ca,
    placement: "top"
  }, e);
  return t.content = e.content, t;
}
var C$ = function(t) {
  var a = $$(t), r = a.attach, n = a.placement, o = Yt(r);
  Le.get(o) || Le.set(o, {});
  var l = Le.get(o)[n], u;
  if (l)
    u = l.add(a);
  else {
    var s = document.createElement("div"), c = Aa(_$, {
      zIndex: a.zIndex,
      placement: a.placement
    }).mount(s);
    u = c.add(a), Le.get(o)[n] = c, o.appendChild(s);
  }
  return new Promise(function(f) {
    var p = Le.get(o)[n];
    mt(function() {
      var m = p.messageList;
      f(m == null ? void 0 : m.find(function(h) {
        var O;
        return ((O = h.$) === null || O === void 0 || (O = O.vnode) === null || O === void 0 ? void 0 : O.key) === u;
      }));
    });
  });
}, Pe = function(t, a, r) {
  var n = {
    theme: t
  };
  return Ue(a) ? n.content = a : ve(a) && !(a instanceof Array) && (n = Oa(Oa({}, n), a)), (r || r === 0) && (n.duration = r), C$(n);
}, jt = {
  info: function(t, a) {
    return Pe("info", t, a);
  },
  success: function(t, a) {
    return Pe("success", t, a);
  },
  warning: function(t, a) {
    return Pe("warning", t, a);
  },
  error: function(t, a) {
    return Pe("error", t, a);
  },
  question: function(t, a) {
    return Pe("question", t, a);
  },
  loading: function(t, a) {
    return Pe("loading", t, a);
  },
  close: function(t) {
    t.then(function(a) {
      return a == null ? void 0 : a.close();
    });
  },
  closeAll: function() {
    Le instanceof Map && Le.forEach(function(t) {
      Object.keys(t).forEach(function(a) {
        var r = t[a];
        r.list = [];
      });
    });
  }
}, za = Pe;
za.install = function(e) {
  e.config.globalProperties.$message = Pe, Object.keys(jt).forEach(function(t) {
    e.config.globalProperties.$message[t] = jt[t];
  });
};
Object.keys(jt).forEach(function(e) {
  za[e] = jt[e];
});
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var O$ = "t-display-none-element-refresh";
function S$() {
  var e = L(0);
  yo(O$, e), go(function() {
    e.value += 1;
  });
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function A$(e) {
  var t = e == null ? 0 : e.length;
  return t ? e[t - 1] : void 0;
}
var w$ = A$;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var bn = Xe, k$ = gt, E$ = _e, hn = bn ? bn.isConcatSpreadable : void 0;
function x$(e) {
  return E$(e) || k$(e) || !!(hn && e && e[hn]);
}
var T$ = x$, P$ = Ba, F$ = T$;
function eo(e, t, a, r, n) {
  var o = -1, l = e.length;
  for (a || (a = F$), n || (n = []); ++o < l; ) {
    var u = e[o];
    t > 0 && a(u) ? t > 1 ? eo(u, t - 1, a, r, n) : P$(n, u) : r || (n[n.length] = u);
  }
  return n;
}
var D$ = eo, B$ = D$;
function I$(e) {
  var t = e == null ? 0 : e.length;
  return t ? B$(e, 1) : [];
}
var j$ = I$, M$ = j$, N$ = Un, V$ = Rn;
function L$(e) {
  return V$(N$(e, void 0, M$), e + "");
}
var U$ = L$;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var R$ = La, z$ = yl;
function K$(e, t) {
  return t.length < 2 ? e : R$(e, z$(t, 0, -1));
}
var H$ = K$, q$ = Gt, G$ = w$, Y$ = H$, W$ = Ot;
function Z$(e, t) {
  return t = q$(t, e), e = Y$(e, t), e == null || delete e[W$(G$(t))];
}
var X$ = Z$, J$ = Kn;
function Q$(e) {
  return J$(e) ? void 0 : e;
}
var eC = Q$, tC = cl, aC = My, rC = X$, nC = Gt, lC = at, oC = eC, uC = U$, iC = nl, sC = 1, cC = 2, dC = 4, fC = uC(function(e, t) {
  var a = {};
  if (e == null)
    return a;
  var r = !1;
  t = tC(t, function(o) {
    return o = nC(o, e), r || (r = o.length > 1), o;
  }), lC(e, iC(e), a), r && (a = aC(a, sC | cC | dC, oC));
  for (var n = t.length; n--; )
    rC(a, t[n]);
  return a;
}), to = fC;
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function vC(e, t) {
  if (!(e instanceof t))
    throw new TypeError("Cannot call a class as a function");
}
function _n(e, t) {
  for (var a = 0; a < t.length; a++) {
    var r = t[a];
    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, En(r.key), r);
  }
}
function pC(e, t, a) {
  return t && _n(e.prototype, t), a && _n(e, a), Object.defineProperty(e, "prototype", {
    writable: !1
  }), e;
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var mC = {
  attach: {
    type: [String, Function]
  },
  body: {
    type: [String, Function]
  },
  cancelBtn: {
    type: [String, Object, Function]
  },
  closeBtn: {
    type: [String, Boolean, Function],
    default: !0
  },
  closeOnEscKeydown: {
    type: Boolean,
    default: void 0
  },
  closeOnOverlayClick: {
    type: Boolean,
    default: void 0
  },
  confirmBtn: {
    type: [String, Object, Function]
  },
  confirmLoading: {
    type: Boolean,
    default: void 0
  },
  confirmOnEnter: Boolean,
  default: {
    type: [String, Function]
  },
  destroyOnClose: Boolean,
  draggable: Boolean,
  footer: {
    type: [Boolean, Function],
    default: !0
  },
  header: {
    type: [String, Boolean, Function],
    default: !0
  },
  mode: {
    type: String,
    default: "modal",
    validator: function(t) {
      return t ? ["modal", "modeless", "normal", "full-screen"].includes(t) : !0;
    }
  },
  placement: {
    type: String,
    default: "top",
    validator: function(t) {
      return t ? ["top", "center"].includes(t) : !0;
    }
  },
  preventScrollThrough: {
    type: Boolean,
    default: !0
  },
  showInAttachedElement: Boolean,
  showOverlay: {
    type: Boolean,
    default: !0
  },
  theme: {
    type: String,
    default: "default",
    validator: function(t) {
      return t ? ["default", "info", "warning", "danger", "success"].includes(t) : !0;
    }
  },
  top: {
    type: [String, Number]
  },
  visible: Boolean,
  width: {
    type: [String, Number]
  },
  zIndex: {
    type: Number
  },
  onCancel: Function,
  onClose: Function,
  onCloseBtnClick: Function,
  onClosed: Function,
  onConfirm: Function,
  onEscKeydown: Function,
  onOpened: Function,
  onOverlayClick: Function
};
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function $n(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function qe(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? $n(Object(a), !0).forEach(function(r) {
      re(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : $n(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
function yC(e) {
  var t = pt(), a = At(), r = function(c) {
    var f, p = c.globalConfirm, m = c.theme, h = c.globalConfirmBtnTheme, O = ((f = to(h, ["info"])) === null || f === void 0 ? void 0 : f[m]) || "primary", S = {
      theme: O,
      size: c.size,
      onClick: function(T) {
        e.confirmBtnAction(T);
      }
    };
    return Ue(p) ? S.content = p : ve(p) && (S = qe(qe({}, S), p)), S;
  }, n = function(c) {
    var f = c.globalCancel, p = {
      theme: "default",
      size: c.size,
      onClick: function(h) {
        e.cancelBtnAction(h);
      }
    };
    return Ue(f) ? p.content = f : ve(f) && (p = qe(qe({}, p), f)), p;
  }, o = function(c, f) {
    var p = f.defaultButtonProps, m = f.className, h = f.confirmLoading, O = p;
    return Ue(c) ? O.content = c : ve(c) && (O = qe(qe({}, O), c)), h !== void 0 && (O.loading = h), _(sa, E({
      class: m
    }, O), null);
  }, l = function(c) {
    var f = c.confirmBtn, p = c.className, m = c.confirmLoading;
    if (f === null)
      return null;
    f && t.slots.confirmBtn && console.warn("Both $props.confirmBtn and $scopedSlots.confirmBtn exist, $props.confirmBtn is preferred.");
    var h = r(c);
    return !f && !t.slots.confirmBtn ? _(sa, E({
      class: p,
      loading: m
    }, h), null) : f && ["string", "object"].includes(ce(f)) ? o(f, {
      defaultButtonProps: h,
      className: p,
      confirmLoading: m
    }) : a("confirmBtn");
  }, u = function(c) {
    var f = c.cancelBtn, p = c.className;
    if (f === null)
      return null;
    f && t.slots.cancelBtn && console.warn("Both $props.cancelBtn and $scopedSlots.cancelBtn exist, $props.cancelBtn is preferred.");
    var m = n(c);
    return !f && !t.slots.cancelBtn ? _(sa, E({
      class: p
    }, m), null) : f && ["string", "object"].includes(ce(f)) ? o(f, {
      defaultButtonProps: m
    }) : a("cancelBtn");
  };
  return {
    getConfirmBtn: l,
    getCancelBtn: u
  };
}
function gC(e) {
  var t = !1, a = !1, r = function(u) {
    t && a && e(u), t = !1, a = !1;
  }, n = function(u) {
    t = u.target === u.currentTarget;
  }, o = function(u) {
    a = u.target === u.currentTarget;
  };
  return {
    onClick: r,
    onMousedown: n,
    onMouseup: o
  };
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function bC() {
  var e = document.createElement("div");
  e.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(e);
  var t = e.offsetWidth - e.clientWidth;
  return document.body.removeChild(e), t;
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
var hC = 1e3, _C = 5e3, $C = 1, CC = /* @__PURE__ */ pC(function e() {
  var t = this;
  vC(this, e), re(this, "popupStack", {
    popup: /* @__PURE__ */ new Set(),
    dialog: /* @__PURE__ */ new Set(),
    message: /* @__PURE__ */ new Set()
  }), re(this, "getNextZIndex", function(a) {
    var r = a === "message" ? Array.from(t.popupStack.message).pop() || _C : Array.from(t.popupStack.popup).pop() || hC;
    return r + $C;
  }), re(this, "add", function(a) {
    var r = t.getNextZIndex(a);
    return t.popupStack[a].add(r), a === "dialog" && t.popupStack.popup.add(r), r;
  }), re(this, "delete", function(a, r) {
    t.popupStack[r].delete(a), r === "dialog" && t.popupStack.popup.delete(a);
  }), re(this, "isLastDialog", function(a) {
    return t.popupStack.dialog.size > 1 ? a === Array.from(t.popupStack.dialog).pop() : !0;
  });
}), ca = new CC();
function OC(e) {
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = t.visible, r = t.runOnMounted, n = L(0), o = function() {
    n.value = ca.add(e);
  }, l = function() {
    ca.delete(n.value, e);
  }, u = function() {
    return e === "dialog" ? ca.isLastDialog(n.value) : !1;
  };
  return se(function() {
    return a == null ? void 0 : a.value;
  }, function(s) {
    s ? o() : l();
  }, {
    immediate: !0
  }), r && (ge(function() {
    o();
  }), An(function() {
    l();
  })), {
    zIndex: bo(n),
    open: o,
    close: l,
    isLastDialog: u
  };
}
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function Cn(e) {
  return Number.isNaN(Number(e)) ? e : "".concat(Number(e), "px");
}
var dt, SC = function(t) {
  dt = {
    x: t.clientX,
    y: t.clientY
  }, setTimeout(function() {
    dt = null;
  }, 100);
};
typeof window < "u" && window.document && window.document.documentElement && document.documentElement.addEventListener("click", SC, !0);
function AC(e) {
  var t = e, a = window.innerWidth || document.documentElement.clientWidth, r = window.innerHeight || document.documentElement.clientHeight;
  t.addEventListener("mousedown", function(n) {
    var o = n.clientX - t.offsetLeft, l = n.clientY - t.offsetTop, u = t.offsetWidth, s = t.offsetHeight;
    if (u > a || s > r)
      return;
    function c(p) {
      var m = p.clientX - o, h = p.clientY - l;
      m < 0 && (m = 0), h < 0 && (h = 0), a - t.offsetWidth - m < 0 && (m = a - t.offsetWidth), r - t.offsetHeight - h < 0 && (h = r - t.offsetHeight), t.style.position = "absolute", t.style.left = "".concat(m, "px"), t.style.top = "".concat(h, "px");
    }
    function f() {
      document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", f);
    }
    document.addEventListener("mousemove", c), document.addEventListener("mouseup", f), document.addEventListener("dragend", f);
  });
}
var wC = 1, kC = ae({
  name: "TDialog",
  directives: {
    draggable: function(t, a) {
      t && a && a.value && AC(t);
    }
  },
  inheritAttrs: !1,
  props: mC,
  emits: ["update:visible"],
  setup: function(t, a) {
    var r = this, n = ie("dialog"), o = ie(), l = Ra(), u = At(), s = L(null), c = St("dialog"), f = c.globalConfig, p = Xl({
      CloseIcon: ql,
      InfoCircleFilledIcon: Yl,
      CheckCircleFilledIcon: Hl,
      ErrorCircleFilledIcon: Gl
    }), m = p.CloseIcon, h = p.InfoCircleFilledIcon, O = p.CheckCircleFilledIcon, S = p.ErrorCircleFilledIcon, w = function(K) {
      var Q;
      (Q = t.onConfirm) === null || Q === void 0 || Q.call(t, {
        e: K
      });
    }, T = function(K) {
      var Q;
      (Q = t.onCancel) === null || Q === void 0 || Q.call(t, {
        e: K
      }), Ke({
        e: K,
        trigger: "cancel"
      });
    }, $ = yC({
      confirmBtnAction: w,
      cancelBtnAction: T
    }), C = $.getConfirmBtn, z = $.getCancelBtn, G = Nl(function() {
      return t.attach;
    });
    S$();
    var P = L(), q = L(), Y = j(function() {
      return t.mode === "modal";
    }), H = j(function() {
      return t.mode === "modeless";
    }), I = j(function() {
      return t.mode === "normal";
    }), N = j(function() {
      return t.mode === "full-screen";
    }), ye = j(function() {
      return t.visible;
    }), B = j(function() {
      return ["".concat(n.value, "__mask"), !t.showOverlay && "".concat(o.value, "-is-hidden")];
    }), V = j(function() {
      return I.value ? [] : N.value ? ["".concat(n.value, "__position_fullscreen")] : ["".concat(n.value, "__position"), !!t.top && "".concat(n.value, "--top"), "".concat(t.placement && !t.top ? "".concat(n.value, "--").concat(t.placement) : "")];
    }), d = j(function() {
      return [!I.value && "".concat(n.value, "__wrap")];
    }), g = j(function() {
      if (N.value)
        return {};
      var ee = t.top, K = {};
      if (ee !== void 0) {
        var Q = Cn(ee);
        K = {
          paddingTop: Q
        };
      }
      return K;
    }), b = j(function() {
      var ee = ["".concat(n.value), "".concat(n.value, "__modal-").concat(t.theme), H.value && t.draggable && "".concat(n.value, "--draggable")];
      return N.value ? ee.push("".concat(n.value, "__fullscreen")) : ee.push.apply(ee, ["".concat(n.value, "--default"), "".concat(n.value, "--").concat(t.placement)]), ee;
    }), k = j(function() {
      return N.value ? {} : {
        width: Cn(t.width)
      };
    }), U = OC("dialog", {
      visible: ye
    }), R = U.isLastDialog;
    se(function() {
      return t.visible;
    }, function(ee) {
      if (ee) {
        var K;
        (Y.value && !t.showInAttachedElement || N.value) && (t.preventScrollThrough && document.body.appendChild(q.value), mt(function() {
          dt && s.value && (s.value.style.transformOrigin = "".concat(dt.x - s.value.offsetLeft, "px ").concat(dt.y - s.value.offsetTop, "px"));
        })), (K = document.activeElement) === null || K === void 0 || K.blur();
      } else
        i();
      M(ee);
    });
    function J() {
      var ee, K;
      (ee = q.value.parentNode) === null || ee === void 0 || (K = ee.removeChild) === null || K === void 0 || K.call(ee, q.value);
    }
    function i() {
      clearTimeout(P.value), P.value = setTimeout(function() {
        J();
      }, 150);
    }
    var M = function(K) {
      K ? (document.addEventListener("keydown", pe), t.confirmOnEnter && document.addEventListener("keydown", ue)) : (document.removeEventListener("keydown", pe), t.confirmOnEnter && document.removeEventListener("keydown", ue));
    }, ue = function(K) {
      var Q = K.target;
      if (Q.tagName.toLowerCase() !== "input") {
        var me = K.code;
        if ((me === "Enter" || me === "NumpadEnter") && R()) {
          var ot;
          (ot = t.onConfirm) === null || ot === void 0 || ot.call(t, {
            e: K
          });
        }
      }
    }, pe = function(K) {
      if (K.code === "Escape" && R()) {
        var Q, me;
        (Q = t.onEscKeydown) === null || Q === void 0 || Q.call(t, {
          e: K
        }), ((me = t.closeOnEscKeydown) !== null && me !== void 0 ? me : f.value.closeOnEscKeydown) && Ke({
          e: K,
          trigger: "esc"
        });
      }
    }, be = function(K) {
      var Q;
      if (t.showOverlay && ((Q = t.closeOnOverlayClick) !== null && Q !== void 0 ? Q : f.value.closeOnOverlayClick)) {
        var me;
        (me = t.onOverlayClick) === null || me === void 0 || me.call(t, {
          e: K
        }), Ke({
          e: K,
          trigger: "overlay"
        });
      }
    }, he = gC(be), ke = he.onClick, v = he.onMousedown, de = he.onMouseup, Z = function(K) {
      var Q;
      (Q = t.onCloseBtnClick) === null || Q === void 0 || Q.call(t, {
        e: K
      }), Ke({
        trigger: "close-btn",
        e: K
      });
    }, Ce = function() {
      var K;
      (K = t.onOpened) === null || K === void 0 || K.call(t);
    }, ze = function() {
      var K;
      H.value && t.draggable && s.value && (s.value.style.position = "relative", s.value.style.left = "unset", s.value.style.top = "unset"), (K = t.onClosed) === null || K === void 0 || K.call(t);
    }, Ke = function(K) {
      var Q;
      (Q = t.onClose) === null || Q === void 0 || Q.call(t, K), a.emit("update:visible", !1);
    }, ao = function(K) {
      var Q, me = (Q = r._events) === null || Q === void 0 ? void 0 : Q[K];
      return !!(me != null && me.length);
    }, ro = function() {
      var K = {
        info: _(h, {
          class: "".concat(o.value, "-is-info")
        }, null),
        warning: _(S, {
          class: "".concat(o.value, "-is-warning")
        }, null),
        danger: _(S, {
          class: "".concat(o.value, "-is-error")
        }, null),
        success: _(O, {
          class: "".concat(o.value, "-is-success")
        }, null)
      };
      return K[t.theme];
    }, no = function() {
      var K = _("h5", {
        class: "title"
      }, null), Q = _(m, null, null), me = l("default", "body"), ot = _("div", null, [z({
        cancelBtn: t.cancelBtn,
        globalCancel: f.value.cancel,
        className: "".concat(n.value, "__cancel")
      }), C({
        theme: t.theme,
        confirmBtn: t.confirmBtn,
        globalConfirm: f.value.confirm,
        globalConfirmBtnTheme: f.value.confirmBtnTheme,
        className: "".concat(n.value, "__confirm"),
        confirmLoading: t.confirmLoading
      })]), lo = N.value ? ["".concat(n.value, "__header"), "".concat(n.value, "__header--fullscreen")] : "".concat(n.value, "__header"), oo = N.value ? ["".concat(n.value, "__close"), "".concat(n.value, "__close--fullscreen")] : "".concat(n.value, "__close"), ea = t.theme === "default" ? ["".concat(n.value, "__body")] : ["".concat(n.value, "__body__icon")], ta = u("footer", ot);
      N.value && ta ? ea.push("".concat(n.value, "__body--fullscreen")) : N.value && ea.push("".concat(n.value, "__body--fullscreen--without-footer"));
      var uo = N.value ? ["".concat(n.value, "__footer"), "".concat(n.value, "__footer--fullscreen")] : "".concat(n.value, "__footer"), aa = function(io) {
        H.value && t.draggable && io.stopPropagation();
      };
      return _("div", {
        class: d.value
      }, [_("div", {
        class: V.value,
        style: g.value,
        onClick: ke,
        onMousedown: v,
        onMouseup: de
      }, [Ga(_("div", {
        key: "dialog",
        class: b.value,
        style: k.value,
        ref: s
      }, [_("div", {
        class: lo,
        onMousedown: aa
      }, [_("div", {
        class: "".concat(n.value, "__header-content")
      }, [ro(), u("header", K)]), t.closeBtn ? _("span", {
        class: oo,
        onClick: Z
      }, [u("closeBtn", Q)]) : null]), _("div", {
        class: ea,
        onMousedown: aa
      }, [me]), ta && _("div", {
        class: uo,
        onMousedown: aa
      }, [ta])]), [[$o("draggable"), H.value && t.draggable]])])]);
    };
    return ge(function() {
      var ee = document.documentElement.scrollHeight > document.documentElement.clientHeight, K = ee ? bC() : 0;
      q.value = document.createElement("style"), q.value.dataset.id = "td_dialog_".concat(+/* @__PURE__ */ new Date(), "_").concat(wC += 1), q.value.innerHTML = `
        html body {
          overflow-y: hidden;
          width: calc(100% - `.concat(K, `px);
        }
      `);
    }), An(function() {
      M(!1), J();
    }), {
      COMPONENT_NAME: n,
      isModal: Y,
      isModeLess: H,
      isFullScreen: N,
      maskClass: B,
      dialogClass: b,
      dialogStyle: k,
      dialogEle: s,
      afterEnter: Ce,
      afterLeave: ze,
      hasEventOn: ao,
      renderDialog: no,
      teleportElement: G
    };
  },
  render: function() {
    var t = this, a = this.COMPONENT_NAME, r = (this.isModal || this.isFullScreen) && _("div", {
      key: "mask",
      class: this.maskClass
    }, null), n = this.renderDialog(), o = [r, n], l = {
      zIndex: this.zIndex
    }, u = ["".concat(a, "__ctx"), re(re(re({}, "".concat(a, "__ctx--fixed"), this.isModal || this.isFullScreen), "".concat(a, "__ctx--absolute"), this.isModal && this.showInAttachedElement), "".concat(a, "__ctx--modeless"), this.isModeLess)];
    return _(da, {
      disabled: !this.attach || !this.teleportElement,
      to: this.teleportElement
    }, {
      default: function() {
        return [_(ho, {
          duration: 300,
          name: "".concat(a, "-zoom__vue"),
          onAfterEnter: t.afterEnter,
          onAfterLeave: t.afterLeave
        }, {
          default: function() {
            return [(!t.destroyOnClose || t.visible) && Ga(_("div", E({
              class: u,
              style: l
            }, t.$attrs), [o]), [[_o, t.visible]])];
          }
        })];
      }
    });
  }
});
/**
 * tdesign v1.9.0
 * (c) 2024 tdesign
 * @license MIT
 */
function On(e, t) {
  var a = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(n) {
      return Object.getOwnPropertyDescriptor(e, n).enumerable;
    })), a.push.apply(a, r);
  }
  return a;
}
function ct(e) {
  for (var t = 1; t < arguments.length; t++) {
    var a = arguments[t] != null ? arguments[t] : {};
    t % 2 ? On(Object(a), !0).forEach(function(r) {
      re(e, r, a[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : On(Object(a)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
    });
  }
  return e;
}
var Qt = function(t) {
  var a = ct({}, t), r = document.createElement("div"), n = L(!1), o = a.className, l = a.style, u = o, s = function(S, w) {
    if (S) {
      if (u && u !== S) {
        var T;
        (T = r.firstElementChild.classList).remove.apply(T, kn(u.split(" ").map(function($) {
          return $.trim();
        })));
      }
      S.split(" ").forEach(function($) {
        r.firstElementChild.classList.add($.trim());
      });
    }
    w && (r.firstElementChild.style.cssText += w), u = S;
  }, c = ae({
    setup: function(S, w) {
      var T = w.expose, $ = L(a);
      ge(function() {
        n.value = !0, document.activeElement.blur(), mt(function() {
          s(o, l);
        });
      });
      var C = function(G) {
        $.value = ct(ct({}, a), G);
      };
      return T({
        update: C
      }), function() {
        var z = a.onClose || function() {
          n.value = !1;
        };
        return delete a.className, delete a.style, je(kC, ct({
          onClose: z,
          visible: n.value
        }, $.value));
      };
    }
  }), f = Aa(c), p = f.mount(r), m = Yt(a.attach);
  m ? m.appendChild(r) : console.error("attach is not exist");
  var h = {
    show: function() {
      n.value = !0;
    },
    hide: function() {
      n.value = !1;
    },
    update: function(S) {
      p.update(to(S, ["className", "style"])), s(S.className, S.style);
    },
    destroy: function() {
      n.value = !1, setTimeout(function() {
        f.unmount(), r.remove();
      }, 300);
    },
    setConfirmLoading: function(S) {
      p.update({
        confirmLoading: S
      });
    }
  };
  return h;
}, EC = function(t) {
  return Qt(t);
}, xC = function(t) {
  var a = ct({}, t);
  return a.cancelBtn = null, Qt(a);
}, Mt = {
  confirm: EC,
  alert: xC
}, Ka = Qt;
Ka.install = function(e) {
  e.config.globalProperties.$dialog = Qt, Object.keys(Mt).forEach(function(t) {
    e.config.globalProperties.$dialog[t] = Mt[t];
  });
};
Object.keys(Mt).forEach(function(e) {
  Ka[e] = Mt[e];
});
function Sa(e) {
  if (typeof e != "object")
    return e;
  if (Array.isArray(e))
    return e.length === 0 ? void 0 : e.filter((t) => typeof t == "object" ? Object.keys(t).length > 0 : t !== "" && t !== null && t !== void 0);
  {
    const t = {};
    return Object.keys(e).forEach((a) => {
      typeof e[a] == "object" ? (Array.isArray(e[a]) || Object.keys(e[a]).length > 0) && (t[a] = Sa(e[a])) : e[a] !== "" && e[a] !== null && e[a] !== void 0 && (t[a] = e[a]);
    }), t;
  }
}
const TC = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    options: {
      type: Object,
      default: () => [],
      require: !0
    },
    form: {
      type: Object,
      default: null
    },
    labelAlign: {
      type: String,
      default: "top"
    },
    labelWidth: {
      type: String,
      default: "auto"
    },
    layout: {
      type: String,
      default: "vertical"
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    request: {
      type: Function,
      default: null
    },
    footer: {
      type: Boolean,
      default: !0
    },
    submitText: {
      type: String,
      default: "提交"
    },
    resetText: {
      type: String,
      default: "重置"
    },
    footerAligin: {
      type: String,
      default: "right"
    },
    readonly: {
      type: Boolean,
      default: !1
    },
    showReset: {
      type: Boolean,
      default: !0
    },
    mountedRequest: {
      type: Function
    }
  },
  emits: ["update:form", "uploadSelectChange", "uploadSuccess", "uploadFail", "uploadValidate", "submit", "reset", "change"],
  setup(e, {
    expose: t,
    emit: a
  }) {
    const r = e;
    Co((P) => ({
      "50ead9b1": r.footerAligin
    }));
    const n = {}.VITE_SOURCE_URL || "", o = Ie(), l = L(r.form || {}), u = L(), s = L();
    c().then(() => {
      r.mountedRequest && r.mountedRequest();
    });
    async function c() {
      const P = await r.request();
      if (P)
        f(P);
      else if (r.form)
        l.value = {
          ...r.form
        };
      else {
        let q = r.options.filter((H) => [!1, void 0, null].includes(H.hideInForm));
        u.value = q;
        let Y = {};
        u.value.forEach((H) => {
          H.type && ["dateRange", "upload"].includes(H.type) ? H.type == "upload" && H.value ? Y[H.name] = H.value.split(",").map((I) => ({
            url: `${n}${I}`,
            name: I.split("/").pop()
          })) : Y[H.name] = H.value || [] : Y[H.name] = [void 0, null].includes(H.value) ? void 0 : H.value;
        }), l.value = Y;
      }
      return !0;
    }
    function f(P) {
      let q = r.options.filter((I) => [!1, void 0, null].includes(I.hideInForm));
      u.value = q, l.value = {
        ...P
      };
      const Y = u.value.find((I) => I.type == "upload");
      Y && l.value[Y.name] ? Y.multiple ? l.value[Y.name] = l.value[Y.name].split(",").map((I) => ({
        url: `${n}${I}`,
        name: I.split("/").pop()
      })) : l.value[Y.name] = [{
        url: `${n}${l.value[Y.name]}`,
        name: l.value[Y.name].split("/").pop()
      }] : Y && (l.value[Y.name] = []);
      const H = u.value.find((I) => I.type == "select");
      H && H.multiple && (l.value[H.name] = l.value[H.name].split(",").map((I) => H.needNumber ? Number(I) : I));
    }
    function p(P) {
      return r.disabled || (P == null ? void 0 : P.disabled);
    }
    function m(P) {
      return r.readonly || (P == null ? void 0 : P.readonly);
    }
    function h(P, q) {
      mt(() => {
        l.value[P] = q;
      });
    }
    function O() {
      return Sa({
        ...l.value
      });
    }
    function S(P, q) {
      a("uploadSelectChange", P, q);
    }
    function w(P) {
      a("uploadSuccess", P);
    }
    function T(P) {
      a("uploadFail", P);
    }
    function $(P) {
      a("uploadValidate", P);
    }
    function C() {
      s.value.validate().then((P) => {
        P === !0 ? a("submit", l.value) : za.error("请检查表单");
      });
    }
    function z() {
      a("reset"), s.value.reset();
      const P = r.options.filter((q) => q.type == "upload");
      P.length && P.forEach((q) => {
        l.value[q.name] = [];
      });
    }
    se(() => r.options, () => {
      c();
    }, {
      deep: !0
    }), se(l, (P) => {
      a("change", P);
    }, {
      deep: !0
    });
    const G = (P) => typeof P == "function";
    return t({
      setItem: h,
      getFormValue: O,
      initForm: c,
      submit: C,
      reset: z
    }), (P, q) => {
      const Y = F("ProFormInput"), H = F("ProFormRadio"), I = F("ProFormSelect"), N = F("ProFormCheckbox"), ye = F("ProFormTextarea"), B = F("ProFormDatepicker"), V = F("t-upload"), d = F("t-form-item"), g = F("t-input-number"), b = F("ProFormSelectTree"), k = F("t-col"), U = F("t-row"), R = F("t-button"), J = F("t-form");
      return y(), A(J, {
        onSubmit: C,
        ref_key: "formRef",
        ref: s,
        onReset: z,
        data: l.value,
        layout: r.layout,
        labelAlign: r.labelAlign
      }, {
        default: x(() => [_(U, {
          gutter: [12, 24]
        }, {
          default: x(() => [(y(!0), W(oe, null, Se(u.value, (i) => (y(), W(oe, null, [X(P.$slots, `before-${i.name}`, {}, void 0, !0), _(k, {
            span: i.col || 6,
            offset: i.offset
          }, {
            default: x(() => [i.isSlot ? X(P.$slots, `form-${i.name}`, {
              key: 1,
              option: i
            }, void 0, !0) : (y(), W(oe, {
              key: 0
            }, [["input", void 0].includes(i.type) ? (y(), A(Y, E({
              key: 0,
              formAttrs: i.formAttrs,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              readonly: m(i),
              disabled: p(i),
              placeholder: i.placeholder || `请输入${i.label}`,
              rules: i.rules
            }, i.inputAttrs, {
              name: i.name,
              label: i.label,
              inputAttrs: i.inputAttrs
            }), null, 16, ["formAttrs", "modelValue", "onUpdate:modelValue", "readonly", "disabled", "placeholder", "rules", "name", "label", "inputAttrs"])) : D("", !0), i.type == "password" ? (y(), A(Y, E({
              key: 1,
              formAttrs: i.formAttrs,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              readonly: m(i),
              type: "password",
              disabled: p(i),
              placeholder: i.placeholder || `请输入${i.label}`,
              rules: i.rules
            }, i.inputAttrs, {
              name: i.name,
              label: i.label,
              inputAttrs: i.inputAttrs
            }), null, 16, ["formAttrs", "modelValue", "onUpdate:modelValue", "readonly", "disabled", "placeholder", "rules", "name", "label", "inputAttrs"])) : D("", !0), i.type == "radio" && !G(i.optionData) ? (y(), A(H, E({
              key: 2,
              formAttrs: i.formAttrs,
              list: i.optionData,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              disabled: p(i) || m(i),
              rules: i.rules,
              button: i.radioButton,
              name: i.name,
              label: i.label,
              variant: i.variant
            }, i.radioAttrs), null, 16, ["formAttrs", "list", "modelValue", "onUpdate:modelValue", "disabled", "rules", "button", "name", "label", "variant"])) : D("", !0), i.type == "radio" && G(i.optionData) ? (y(), A(H, E({
              key: 3,
              formAttrs: i.formAttrs,
              api: i.optionData,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              disabled: p(i) || m(i),
              rules: i.rules,
              button: i.radioButton,
              name: i.name,
              label: i.label,
              variant: i.variant
            }, i.radioAttrs), null, 16, ["formAttrs", "api", "modelValue", "onUpdate:modelValue", "disabled", "rules", "button", "name", "label", "variant"])) : D("", !0), i.type == "select" && !G(i.optionData) ? (y(), A(I, E({
              key: 4,
              formAttrs: i.formAttrs,
              placeholder: `请选择${i.label}`,
              list: i.optionData,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              readonly: m(i),
              disabled: p(i),
              rules: i.rules,
              button: i.radioButton,
              name: i.name,
              label: i.label,
              variant: i.variant,
              multiple: i.multiple
            }, i.selectAttrs), null, 16, ["formAttrs", "placeholder", "list", "modelValue", "onUpdate:modelValue", "readonly", "disabled", "rules", "button", "name", "label", "variant", "multiple"])) : D("", !0), i.type == "select" && G(i.optionData) ? (y(), A(I, E({
              key: 5,
              formAttrs: i.formAttrs,
              keyName: i.keyName || "label",
              valueName: i.valueName || "value",
              placeholder: `请选择${i.label}`,
              api: i.optionData,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              readonly: m(i),
              disabled: p(i),
              rules: i.rules,
              button: i.radioButton,
              name: i.name,
              label: i.label,
              variant: i.variant,
              multiple: i.multiple
            }, i.selectAttrs), null, 16, ["formAttrs", "keyName", "valueName", "placeholder", "api", "modelValue", "onUpdate:modelValue", "readonly", "disabled", "rules", "button", "name", "label", "variant", "multiple"])) : D("", !0), i.type == "checkbox" && !G(i.optionData) ? (y(), A(N, E({
              key: 6,
              formAttrs: i.formAttrs,
              list: i.optionData,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              disabled: p(i) || m(i),
              rules: i.rules,
              button: i.radioButton,
              name: i.name,
              label: i.label,
              variant: i.variant,
              multiple: i.multiple
            }, i.selectAttrs), null, 16, ["formAttrs", "list", "modelValue", "onUpdate:modelValue", "disabled", "rules", "button", "name", "label", "variant", "multiple"])) : D("", !0), i.type == "checkbox" && G(i.optionData) ? (y(), A(N, E({
              key: 7,
              formAttrs: i.formAttrs,
              api: i.optionData,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              disabled: p(i) || m(i),
              rules: i.rules,
              button: i.radioButton,
              name: i.name,
              label: i.label,
              variant: i.variant,
              multiple: i.multiple
            }, i.selectAttrs), null, 16, ["formAttrs", "api", "modelValue", "onUpdate:modelValue", "disabled", "rules", "button", "name", "label", "variant", "multiple"])) : D("", !0), i.type == "textarea" ? (y(), A(ye, E({
              key: 8,
              formAttrs: i.formAttrs,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              readonly: m(i),
              disabled: p(i),
              placeholder: `请输入${i.label}`,
              rules: i.rules,
              name: i.name,
              label: i.label
            }, i.textAttrs), null, 16, ["formAttrs", "modelValue", "onUpdate:modelValue", "readonly", "disabled", "placeholder", "rules", "name", "label"])) : D("", !0), i.type == "date" ? (y(), A(B, E({
              key: 9,
              formAttrs: i.formAttrs,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              format: i.format,
              enableTimePicker: i.enableTimePicker,
              disabled: p(i) || m(i)
            }, i.datePickerAttrs, {
              rules: i.rules,
              name: i.name,
              label: i.label
            }), null, 16, ["formAttrs", "modelValue", "onUpdate:modelValue", "format", "enableTimePicker", "disabled", "rules", "name", "label"])) : D("", !0), i.type == "dateRange" ? (y(), A(B, E({
              key: 10,
              formAttrs: i.formAttrs,
              range: "",
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              format: i.format,
              enableTimePicker: i.enableTimePicker,
              readonly: i.readonly,
              disabled: p(i) || m(i)
            }, i.datePickerAttrs, {
              rules: i.rules,
              name: i.name,
              label: i.label
            }), null, 16, ["formAttrs", "modelValue", "onUpdate:modelValue", "format", "enableTimePicker", "readonly", "disabled", "rules", "name", "label"])) : D("", !0), i.type == "upload" ? (y(), A(d, E({
              key: 11
            }, i.formAttrs, {
              label: i.label,
              rules: i.rules,
              name: i.name
            }), {
              default: x(() => [_(V, E({
                modelValue: l.value[i.name],
                "onUpdate:modelValue": (M) => l.value[i.name] = M,
                modelModifiers: {
                  trim: !0
                }
              }, i.uploadAttrs, {
                disabled: p(i) || m(i),
                onSelectChange: S,
                onFail: T,
                onSuccess: w,
                onValidate: $
              }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])]),
              _: 2
            }, 1040, ["label", "rules", "name"])) : D("", !0), i.type == "number" ? (y(), A(d, E({
              key: 12
            }, i.formAttrs, {
              label: i.label,
              rules: i.rules,
              name: i.name
            }), {
              default: x(() => [_(g, E({
                style: i.style,
                modelValue: l.value[i.name],
                "onUpdate:modelValue": (M) => l.value[i.name] = M,
                modelModifiers: {
                  trim: !0
                },
                readonly: m(i)
              }, i.inputNumberAttrs, {
                disabled: p(i)
              }), null, 16, ["style", "modelValue", "onUpdate:modelValue", "readonly", "disabled"])]),
              _: 2
            }, 1040, ["label", "rules", "name"])) : D("", !0), i.type == "selectTree" && !G(i.optionData) ? (y(), A(b, E({
              key: 13,
              formAttrs: i.formAttrs,
              keyName: i.keyName || "label",
              valueName: i.valueName || "value",
              placeholder: `请选择${i.label}`,
              list: i.optionData,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              readonly: m(i),
              disabled: p(i),
              rules: i.rules,
              button: i.radioButton,
              name: i.name,
              label: i.label,
              variant: i.variant,
              multiple: i.multiple
            }, i.selectTreeAttrs), null, 16, ["formAttrs", "keyName", "valueName", "placeholder", "list", "modelValue", "onUpdate:modelValue", "readonly", "disabled", "rules", "button", "name", "label", "variant", "multiple"])) : D("", !0), i.type == "selectTree" && G(i.optionData) ? (y(), A(b, E({
              key: 14,
              formAttrs: i.formAttrs,
              keyName: i.keyName || "label",
              valueName: i.valueName || "value",
              placeholder: `请选择${i.label}`,
              api: i.optionData,
              modelValue: l.value[i.name],
              "onUpdate:modelValue": (M) => l.value[i.name] = M,
              modelModifiers: {
                trim: !0
              },
              readonly: m(i),
              disabled: p(i),
              rules: i.rules,
              button: i.radioButton,
              name: i.name,
              label: i.label,
              variant: i.variant,
              multiple: i.multiple
            }, i.selectTreeAttrs), null, 16, ["formAttrs", "keyName", "valueName", "placeholder", "api", "modelValue", "onUpdate:modelValue", "readonly", "disabled", "rules", "button", "name", "label", "variant", "multiple"])) : D("", !0)], 64))]),
            _: 2
          }, 1032, ["span", "offset"]), X(P.$slots, `after-${i.name}`, {}, void 0, !0)], 64))), 256)), X(P.$slots, "default", {}, void 0, !0)]),
          _: 3
        }), _(U, {
          class: "proform-footer"
        }, {
          default: x(() => [r.footer !== !1 && !te(o).footer ? (y(), A(k, {
            key: 0,
            span: 12
          }, {
            default: x(() => [_(R, {
              type: "submit",
              style: {
                "margin-right": "0.75rem"
              }
            }, {
              default: x(() => [Fe(fe(r.submitText), 1)]),
              _: 1
            }), e.showReset ? (y(), A(R, {
              key: 0,
              type: "reset",
              theme: "default"
            }, {
              default: x(() => [Fe(fe(r.resetText), 1)]),
              _: 1
            })) : D("", !0)]),
            _: 1
          })) : X(P.$slots, "footer", {
            key: 1
          }, void 0, !0)]),
          _: 3
        })]),
        _: 3
      }, 8, ["data", "layout", "labelAlign"]);
    };
  }
});
const Ha = (e, t) => {
  const a = e.__vccOpts || e;
  for (const [r, n] of t)
    a[r] = n;
  return a;
}, PC = /* @__PURE__ */ Ha(TC, [["__scopeId", "data-v-4559cad5"]]), FC = {
  install(e) {
    e.component("ProForm", PC);
  }
}, DC = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    name: {
      type: String,
      default: "",
      require: !0
    },
    list: {
      type: Array,
      default: []
    },
    modelValue: {
      type: [String, Number, Array],
      default: "",
      require: !0
    },
    label: {
      type: String,
      default: ""
    },
    rules: {
      type: Array,
      default: []
    },
    keyName: {
      type: String,
      default: ""
    },
    valueName: {
      type: String,
      default: ""
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    placeholder: {
      type: String,
      default: ""
    },
    readonly: {
      type: Boolean,
      default: !1
    },
    multiple: {
      type: Boolean,
      default: !1
    },
    help: {
      type: String,
      default: ""
    },
    width: {
      type: String,
      default: ""
    },
    api: {
      type: Function
    }
  },
  emits: ["update:modelValue", "change"],
  setup(e, { emit: t }) {
    const a = e, r = a.keyName || "label", n = a.valueName || "value", o = L([]), l = L(a.modelValue);
    function u(c) {
      o.value.length && (t("update:modelValue", c), t("change", c));
    }
    se(() => a.modelValue, (c) => l.value = c);
    function s(c) {
      const f = [];
      return c.forEach((p) => {
        let m = {
          label: p[r],
          value: p[n]
        };
        p.children && (m.children = s(p.children)), f.push(m);
      }), f;
    }
    return ge(() => {
      if (!a.name)
        throw new Error("ProFormSelect => name is required");
      a.api ? a.api().then((c) => {
        o.value = s(c);
      }) : a.list.length && (o.value = a.list.map((c) => ({ label: c[r], value: c[n], disabled: c.disabled })));
    }), (c, f) => {
      const p = F("t-tree-select"), m = F("t-form-item");
      return y(), A(m, E({
        help: a.help,
        name: a.name
      }, a.formAttrs, {
        label: a.label,
        rules: a.rules
      }), {
        default: x(() => [
          _(p, E({
            style: { width: a.width }
          }, c.$attrs, {
            multiple: e.multiple,
            disabled: e.disabled,
            readonly: a.readonly,
            onChange: u,
            modelValue: l.value,
            "onUpdate:modelValue": f[0] || (f[0] = (h) => l.value = h),
            placeholder: a.placeholder || "请选择",
            data: o.value
          }), null, 16, ["style", "multiple", "disabled", "readonly", "modelValue", "placeholder", "data"])
        ]),
        _: 1
      }, 16, ["help", "name", "label", "rules"]);
    };
  }
}), BC = {
  install(e) {
    e.component("ProFormSelectTree", DC);
  }
}, IC = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    modelValue: {
      type: [String, Array],
      default: "",
      require: !0
    },
    placeholder: {
      type: String,
      default: "请输入内容"
    },
    name: {
      type: String,
      default: "",
      require: !0
    },
    label: {
      type: String,
      default: ""
    },
    formAttrs: {
      type: Object,
      default: () => ({})
    },
    readonly: {
      type: Boolean,
      default: !1
    },
    disabled: {
      type: Boolean,
      default: !1
    },
    rules: {
      type: Array,
      default: () => []
    },
    range: {
      type: Boolean,
      default: !1
    },
    format: {
      type: String,
      default: "YYYY-MM-DD"
    },
    help: {
      type: String,
      default: ""
    },
    enableTimePicker: {
      type: Boolean,
      default: !1
    }
  },
  emits: ["update:modelValue", "change"],
  setup(e, { emit: t }) {
    const a = e, r = L(a.modelValue);
    se(() => a.modelValue, (o) => {
      r.value = o;
    });
    function n(o, l) {
      t("update:modelValue", o), t("change", { value: o, context: l });
    }
    return (o, l) => {
      const u = F("t-date-picker"), s = F("t-date-range-picker"), c = F("t-form-item");
      return y(), A(c, E({
        help: a.help
      }, a.formAttrs, {
        rules: a.rules,
        name: e.name,
        label: e.label
      }), {
        default: x(() => [
          a.range ? (y(), A(s, E({
            key: 1,
            "enable-time-picker": e.enableTimePicker,
            disabled: a.disabled || a.readonly
          }, o.$attrs, {
            modelValue: r.value,
            "onUpdate:modelValue": l[1] || (l[1] = (f) => r.value = f),
            onChange: n
          }), null, 16, ["enable-time-picker", "disabled", "modelValue"])) : (y(), A(u, E({
            key: 0,
            "enable-time-picker": e.enableTimePicker,
            style: { width: "100%" },
            disabled: a.disabled || a.readonly,
            format: a.format,
            onChange: n
          }, o.$attrs, {
            modelValue: r.value,
            "onUpdate:modelValue": l[0] || (l[0] = (f) => r.value = f)
          }), null, 16, ["enable-time-picker", "disabled", "format", "modelValue"]))
        ]),
        _: 1
      }, 16, ["help", "rules", "name", "label"]);
    };
  }
}), jC = {
  install(e) {
    e.component("ProFormDatepicker", IC);
  }
}, MC = {
  key: 0,
  class: "pro-modal-body"
}, NC = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    visible: {
      type: Boolean,
      default: !1
    },
    request: {
      type: Function,
      required: !0
    },
    options: {
      type: Array
    },
    header: {
      type: String,
      default: "标题"
    }
  },
  emits: ["update:visible", "submit"],
  setup(e, { expose: t, emit: a }) {
    const r = e, n = Ie(), o = L(!1), l = L(), u = L();
    function s(h) {
      a("submit", h);
    }
    function c() {
      l.value.submit();
    }
    function f() {
      l.value.reset();
    }
    function p() {
      l.value.getFormValue();
    }
    function m(h, O) {
      l.value.setItem(h, O);
    }
    return se(() => r.visible, (h) => {
      o.value = h;
    }), se(o, (h) => {
      a("update:visible", h);
    }), t({
      submit: c,
      reset: f,
      getFormValue: p,
      setItem: m
    }), (h, O) => {
      const S = F("ProForm"), w = F("t-dialog");
      return y(), A(w, {
        ref_key: "proModalRef",
        ref: u,
        header: r.header,
        onConfirm: c,
        visible: o.value,
        "onUpdate:visible": O[0] || (O[0] = (T) => o.value = T)
      }, xe({
        default: x(() => [
          o.value ? (y(), W("div", MC, [
            _(S, {
              onSubmit: s,
              ref_key: "proFormRef",
              ref: l,
              footer: !1,
              options: r.options,
              request: r.request
            }, xe({ _: 2 }, [
              Se(r.options.map((T) => T.name), (T) => ({
                name: `before-${T}`,
                fn: x(() => [
                  te(n)[`before-${T}`] ? X(h.$slots, `before-${T}`, { key: 0 }, void 0, !0) : D("", !0)
                ])
              })),
              Se(r.options.map((T) => T.name), (T) => ({
                name: `after-${T}`,
                fn: x(() => [
                  te(n)[`after-${T}`] ? X(h.$slots, `after-${T}`, { key: 0 }, void 0, !0) : D("", !0)
                ])
              }))
            ]), 1032, ["options", "request"])
          ])) : D("", !0)
        ]),
        _: 2
      }, [
        te(n).footer ? {
          name: "footer",
          fn: x(() => [
            X(h.$slots, "footer", {}, void 0, !0)
          ]),
          key: "0"
        } : void 0
      ]), 1032, ["header", "visible"]);
    };
  }
});
const VC = /* @__PURE__ */ Ha(NC, [["__scopeId", "data-v-df204036"]]), LC = {
  install(e) {
    e.component("ProModal", VC);
  }
}, UC = { key: 0 }, RC = { key: 0 }, zC = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    text: { default: "高级按钮" },
    icon: {},
    theme: {},
    variant: {},
    loading: { type: Boolean, default: !1 },
    disabled: { type: Boolean, default: !1 },
    block: { type: Boolean },
    size: {},
    shape: {},
    mode: { default: "default" },
    content: { type: [String, Function], default: "高级按钮提示内容" },
    popupTheme: {},
    popupProps: {},
    popupIcon: {},
    confirmBtn: {},
    cancelBtn: {},
    dialogHeader: { default: "系统提示" },
    closeOnEscKeydown: { type: Boolean, default: !1 },
    closeOnOverlayClick: { type: Boolean, default: !1 },
    zIndex: {}
  },
  emits: ["update:loading", "confirm", "cancel", "click"],
  setup(e, { emit: t }) {
    const a = e, r = Ie(), n = L(a.loading);
    function o() {
      t("confirm", null);
    }
    function l() {
      t("cancel", null);
    }
    function u() {
      if (a.mode === "default")
        t("click");
      else if (a.mode === "dialog") {
        const s = Ka.confirm({
          body: a.content,
          header: a.dialogHeader,
          zIndex: a.zIndex,
          cancelBtn: a.cancelBtn,
          confirmBtn: a.confirmBtn,
          closeBtn: !1,
          closeOnEscKeydown: a.closeOnEscKeydown,
          onConfirm() {
            t("confirm", s);
          },
          onCancel() {
            t("cancel", s);
          }
        });
      }
    }
    return se(() => a.loading, (s) => {
      n.value = s;
    }), se(n, (s) => t("update:loading", s)), (s, c) => {
      const f = F("t-icon"), p = F("t-button"), m = F("t-popconfirm");
      return a.mode === "popup" ? (y(), A(m, {
        key: 0,
        onConfirm: o,
        onCancel: l,
        "confirm-btn": a.confirmBtn,
        "cancel-btn": a.cancelBtn,
        content: a.content,
        "popup-props": a.popupProps,
        theme: a.popupTheme
      }, xe({
        default: x(() => [
          _(p, {
            size: a.size,
            disabled: a.disabled,
            loading: n.value,
            theme: a.theme,
            variant: a.variant
          }, xe({
            default: x(() => [
              te(r).default ? X(s.$slots, "default", { key: 1 }) : (y(), W("span", UC, fe(a.text), 1))
            ]),
            _: 2
          }, [
            a.icon || te(r).icon ? {
              name: "icon",
              fn: x(() => [
                te(r).icon ? X(s.$slots, "icon", { key: 1 }) : (y(), A(f, {
                  key: 0,
                  name: s.icon
                }, null, 8, ["name"]))
              ]),
              key: "0"
            } : void 0
          ]), 1032, ["size", "disabled", "loading", "theme", "variant"])
        ]),
        _: 2
      }, [
        te(r).content ? {
          name: "content",
          fn: x(() => [
            X(s.$slots, "content")
          ]),
          key: "0"
        } : void 0,
        te(r).popupIcon || a.popupIcon ? {
          name: "icon",
          fn: x(() => [
            te(r).popupIcon ? X(s.$slots, "popupIcon", { key: 1 }) : (y(), A(f, {
              key: 0,
              name: a.popupIcon
            }, null, 8, ["name"]))
          ]),
          key: "1"
        } : void 0
      ]), 1032, ["confirm-btn", "cancel-btn", "content", "popup-props", "theme"])) : (y(), A(p, {
        key: 1,
        onClick: u,
        size: a.size,
        disabled: a.disabled,
        loading: n.value,
        theme: a.theme,
        variant: a.variant
      }, xe({
        default: x(() => [
          te(r).default ? X(s.$slots, "default", { key: 1 }) : (y(), W("span", RC, fe(a.text), 1))
        ]),
        _: 2
      }, [
        a.icon || te(r).icon ? {
          name: "icon",
          fn: x(() => [
            te(r).icon ? X(s.$slots, "icon", { key: 1 }) : (y(), A(f, {
              key: 0,
              name: s.icon
            }, null, 8, ["name"]))
          ]),
          key: "0"
        } : void 0
      ]), 1032, ["size", "disabled", "loading", "theme", "variant"]));
    };
  }
}), KC = {
  install(e) {
    e.component("ProButton", zC);
  }
}, HC = {
  key: 0,
  class: "pro-tabs-content"
}, qa = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    tabs: {},
    request: { type: Function },
    tabsAttrs: {},
    defaultValue: {}
  },
  setup(e) {
    const t = e, a = Ie();
    return (r, n) => {
      const o = F("t-tab-panel"), l = F("t-tabs");
      return y(), A(l, E({
        defaultValue: t.defaultValue
      }, t.tabsAttrs), {
        default: x(() => [
          (y(!0), W(oe, null, Se(t.tabs, (u) => (y(), A(o, E(u.tabPanelAttrs, {
            value: u.key,
            label: u.label
          }), {
            default: x(() => [
              te(a).default ? X(r.$slots, "default", {
                key: u.key
              }) : (y(), W("p", HC, fe(u.children), 1))
            ]),
            _: 2
          }, 1040, ["value", "label"]))), 256))
        ]),
        _: 3
      }, 16, ["defaultValue"]);
    };
  }
});
const qC = { class: "pro-card" }, GC = { class: "pro-card-title" }, YC = { key: 0 }, WC = { class: "pro-card-avatar" }, ZC = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    title: { default: "标题" },
    subTitle: {},
    tabs: {},
    tabKey: {},
    headerBordered: { type: Boolean, default: !0 },
    bordered: { type: Boolean, default: !0 },
    tabsAttrs: {},
    avatarAttrs: { default: () => ({
      size: "large",
      shape: "round"
    }) },
    avatarImage: {}
  },
  emits: ["update:tabKey"],
  setup(e, { emit: t }) {
    const a = e, r = Ie(), n = L("");
    return se(() => a.tabKey, (o) => {
      n.value = o;
    }), se(n, (o) => t("update:tabKey", o)), (o, l) => {
      const u = F("t-avatar"), s = F("t-card");
      return y(), W("div", qC, [
        _(s, {
          headerBordered: a.headerBordered,
          bordered: a.bordered
        }, xe({
          title: x(() => [
            Ee("div", GC, fe(a.title), 1)
          ]),
          subtitle: x(() => [
            te(r).subTitle ? X(o.$slots, "subTitle", { key: 1 }, void 0, !0) : (y(), W("div", YC, fe(a.subTitle), 1))
          ]),
          default: x(() => [
            a.tabs ? (y(), A(qa, {
              key: 1,
              tabAttrs: a.tabsAttrs,
              tabs: a.tabs,
              tabKey: n.value,
              "onUpdate:tabKey": l[0] || (l[0] = (c) => n.value = c)
            }, xe({ _: 2 }, [
              te(r).tabContent ? {
                name: "default",
                fn: x(({ key: c }) => [
                  X(o.$slots, "tabContent", { key: c }, void 0, !0)
                ]),
                key: "0"
              } : void 0
            ]), 1032, ["tabAttrs", "tabs", "tabKey"])) : X(o.$slots, "default", { key: 0 }, void 0, !0)
          ]),
          _: 2
        }, [
          te(r).actions ? {
            name: "actions",
            fn: x(() => [
              X(o.$slots, "actions", {}, void 0, !0)
            ]),
            key: "0"
          } : void 0,
          a.avatarImage || te(r).avatar ? {
            name: "avatar",
            fn: x(() => [
              Ee("div", WC, [
                te(r).avatar ? X(o.$slots, "avatar", { key: 1 }, void 0, !0) : (y(), A(u, E({ key: 0 }, a.avatarAttrs, {
                  image: a.avatarImage
                }), null, 16, ["image"]))
              ])
            ]),
            key: "1"
          } : void 0,
          te(r).footer ? {
            name: "footer",
            fn: x(() => [
              X(o.$slots, "footer", {}, void 0, !0)
            ]),
            key: "2"
          } : void 0
        ]), 1032, ["headerBordered", "bordered"])
      ]);
    };
  }
});
const XC = /* @__PURE__ */ Ha(ZC, [["__scopeId", "data-v-cd0023cf"]]), JC = {
  install(e) {
    e.component("ProCard", XC);
  }
}, QC = { class: "pro-description" }, eO = {
  key: 0,
  class: "pro-description-content"
}, tO = { key: 0 }, aO = {
  key: 0,
  class: "pro-description-content"
}, rO = { key: 0 }, nO = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    options: {},
    request: {},
    title: { default: "Hello World" },
    contentStyle: {},
    labelStyle: {},
    size: {},
    layout: {},
    editable: { type: Boolean },
    empty: { default: "-" },
    loading: { type: Boolean },
    loadingProps: {}
  },
  setup(e, { expose: t }) {
    const a = e, r = Ie(), n = L(), o = L(), l = L([]), u = L(), s = L(!1);
    ge(() => {
      c();
    });
    function c() {
      f();
    }
    function f() {
      let $ = {};
      a.request ? (a.loading && (s.value = !0), a.request().then((C) => {
        const z = Object.keys(C);
        z.length && (z.forEach((G) => {
          a.options.find((q) => q.key === G) && ($[G] = C[G]);
        }), n.value = { ...$ }, o.value = { ...$ }, s.value = !1);
      }).catch(() => {
        s.value = !1;
      })) : (a.options.forEach((C) => {
        $[C.key] = ["string", "number"].includes(typeof C.text) ? C.text : void 0;
      }), n.value = $);
    }
    function p($) {
      l.value = [$];
    }
    function m($, C) {
      u.value.validate().then((z) => {
        z === !0 && ($.onSave && $.onSave($.key, n.value[$.key], n.value, C), l.value = l.value.filter((G) => G !== $.key));
      });
    }
    function h() {
      f();
    }
    function O($, C) {
      if (!Object.keys(n.value).includes($))
        throw new Error("not find this key");
      n.value[$] = C;
    }
    function S($) {
      if (n.value)
        return n.value[$];
    }
    function w($) {
      $.onCancel && $.onCancel($.key, n.value[$.key]), n.value[$.key] = o.value[$.key], l.value = l.value.filter((C) => C !== $.key);
    }
    function T($) {
      var C;
      return $.type === "select" && $.multiple || $.type === "checkbox" ? (C = $.data) == null ? void 0 : C.filter((z) => z.value === n.value[$.key]).map((z) => z.label).join(",") : !$.type || $.type === "input" || $.type === "textarea" || $.type === "date" ? n.value[$.key] : $.data.find((z) => z.value == n.value[$.key]).label;
    }
    return t({
      reload: h,
      setItem: O,
      getItem: S
    }), ($, C) => {
      const z = F("t-descriptions-item"), G = F("ProFormInput"), P = F("ProFormSelect"), q = F("ProFormRadio"), Y = F("ProFormCheckbox"), H = F("ProFormDatepicker"), I = F("t-icon"), N = F("t-link"), ye = F("t-descriptions"), B = F("t-form"), V = F("t-loading");
      return y(), W("div", QC, [
        a.loading ? (y(), A(V, E({ key: 0 }, a.loadingProps, {
          size: "small",
          loading: s.value,
          "show-overlay": ""
        }), {
          default: x(() => [
            _(B, {
              ref_key: "formRef",
              ref: u,
              labelWidth: "0",
              data: n.value
            }, {
              default: x(() => [
                _(ye, E($.$attrs, {
                  title: a.title
                }), {
                  default: x(() => [
                    (y(!0), W(oe, null, Se(a.options, (d, g) => (y(), W(oe, {
                      key: d.key
                    }, [
                      d.render ? (y(), A(z, E({ key: 0 }, d, {
                        label: d.label,
                        content: d.render(d)
                      }), null, 16, ["label", "content"])) : (y(), A(z, E({ key: 1 }, d, {
                        label: d.label
                      }), {
                        default: x(() => [
                          te(r)[`${d.key}-content`] ? X($.$slots, `${d.key}-content`, {
                            key: 0,
                            data: n.value,
                            index: g
                          }) : (y(), W(oe, { key: 1 }, [
                            n.value ? (y(), W("div", eO, [
                              l.value.includes(d.key) ? (y(), W(oe, { key: 1 }, [
                                !d.type || d.type === "input" ? (y(), A(G, E({
                                  key: 0,
                                  rules: d.rules
                                }, d.inputAttrs, {
                                  placeholder: `请输入${d.label}`,
                                  type: "text",
                                  name: d.key,
                                  modelValue: n.value[d.key],
                                  "onUpdate:modelValue": (b) => n.value[d.key] = b,
                                  label: " "
                                }), null, 16, ["rules", "placeholder", "name", "modelValue", "onUpdate:modelValue"])) : D("", !0),
                                d.type === "select" ? (y(), A(P, E({ key: 1 }, d.selectAttrs, {
                                  multiple: !1,
                                  keyName: d.keyName || "label",
                                  valueName: d.valueName || "value",
                                  placeholder: `请选择${d.label}`,
                                  list: d.data || [],
                                  name: d.key,
                                  modelValue: n.value[d.key],
                                  "onUpdate:modelValue": (b) => n.value[d.key] = b,
                                  label: " "
                                }), null, 16, ["keyName", "valueName", "placeholder", "list", "name", "modelValue", "onUpdate:modelValue"])) : D("", !0),
                                d.type === "radio" ? (y(), A(q, E({ key: 2 }, d.radioAttrs, {
                                  list: d.data || [],
                                  name: d.key,
                                  modelValue: n.value[d.key],
                                  "onUpdate:modelValue": (b) => n.value[d.key] = b,
                                  label: " "
                                }), null, 16, ["list", "name", "modelValue", "onUpdate:modelValue"])) : D("", !0),
                                d.type === "checkbox" ? (y(), A(Y, E({ key: 3 }, d.checkBoxAttrs, {
                                  list: d.data || [],
                                  name: d.key,
                                  modelValue: n.value[d.key],
                                  "onUpdate:modelValue": (b) => n.value[d.key] = b,
                                  label: " "
                                }), null, 16, ["list", "name", "modelValue", "onUpdate:modelValue"])) : D("", !0),
                                d.type === "date" ? (y(), A(H, E({ key: 4 }, d.datePickerAttrs, {
                                  name: d.key,
                                  modelValue: n.value[d.key],
                                  "onUpdate:modelValue": (b) => n.value[d.key] = b,
                                  label: " "
                                }), null, 16, ["name", "modelValue", "onUpdate:modelValue"])) : D("", !0)
                              ], 64)) : (y(), W("span", tO, fe(T(d) || a.empty), 1)),
                              a.editable && !l.value.includes(d.key) ? (y(), A(N, {
                                key: 2,
                                onClick: (b) => p(d.key),
                                class: "pro-description-edit",
                                hover: "color"
                              }, {
                                default: x(() => [
                                  _(I, { name: "edit" })
                                ]),
                                _: 2
                              }, 1032, ["onClick"])) : D("", !0),
                              a.editable && l.value.includes(d.key) ? (y(), A(N, {
                                key: 3,
                                onClick: (b) => m(d, g),
                                class: "pro-description-edit",
                                hover: "color",
                                theme: "success"
                              }, {
                                default: x(() => [
                                  _(I, {
                                    size: "18",
                                    name: "check"
                                  })
                                ]),
                                _: 2
                              }, 1032, ["onClick"])) : D("", !0),
                              a.editable && l.value.includes(d.key) ? (y(), A(N, {
                                key: 4,
                                onClick: (b) => w(d),
                                class: "pro-description-edit",
                                hover: "color",
                                theme: "danger"
                              }, {
                                default: x(() => [
                                  _(I, {
                                    size: "18",
                                    name: "close"
                                  })
                                ]),
                                _: 2
                              }, 1032, ["onClick"])) : D("", !0)
                            ])) : D("", !0)
                          ], 64))
                        ]),
                        _: 2
                      }, 1040, ["label"]))
                    ], 64))), 128))
                  ]),
                  _: 3
                }, 16, ["title"])
              ]),
              _: 3
            }, 8, ["data"])
          ]),
          _: 3
        }, 16, ["loading"])) : (y(), A(B, {
          key: 1,
          ref_key: "formRef",
          ref: u,
          labelWidth: "0",
          data: n.value
        }, {
          default: x(() => [
            _(ye, E($.$attrs, {
              title: a.title
            }), {
              default: x(() => [
                (y(!0), W(oe, null, Se(a.options, (d, g) => (y(), W(oe, {
                  key: d.key
                }, [
                  d.render ? (y(), A(z, E({ key: 0 }, d, {
                    label: d.label,
                    content: d.render(d)
                  }), null, 16, ["label", "content"])) : (y(), A(z, E({ key: 1 }, d, {
                    label: d.label
                  }), {
                    default: x(() => [
                      te(r)[`${d.key}-content`] ? X($.$slots, `${d.key}-content`, {
                        key: 0,
                        data: n.value,
                        index: g
                      }) : (y(), W(oe, { key: 1 }, [
                        n.value ? (y(), W("div", aO, [
                          l.value.includes(d.key) ? (y(), W(oe, { key: 1 }, [
                            !d.type || d.type === "input" ? (y(), A(G, E({
                              key: 0,
                              rules: d.rules
                            }, d.inputAttrs, {
                              placeholder: `请输入${d.label}`,
                              type: "text",
                              name: d.key,
                              modelValue: n.value[d.key],
                              "onUpdate:modelValue": (b) => n.value[d.key] = b,
                              label: " "
                            }), null, 16, ["rules", "placeholder", "name", "modelValue", "onUpdate:modelValue"])) : D("", !0),
                            d.type === "select" ? (y(), A(P, E({ key: 1 }, d.selectAttrs, {
                              multiple: !1,
                              keyName: d.keyName || "label",
                              valueName: d.valueName || "value",
                              placeholder: `请选择${d.label}`,
                              list: d.data || [],
                              name: d.key,
                              modelValue: n.value[d.key],
                              "onUpdate:modelValue": (b) => n.value[d.key] = b,
                              label: " "
                            }), null, 16, ["keyName", "valueName", "placeholder", "list", "name", "modelValue", "onUpdate:modelValue"])) : D("", !0),
                            d.type === "radio" ? (y(), A(q, E({ key: 2 }, d.radioAttrs, {
                              list: d.data || [],
                              name: d.key,
                              modelValue: n.value[d.key],
                              "onUpdate:modelValue": (b) => n.value[d.key] = b,
                              label: " "
                            }), null, 16, ["list", "name", "modelValue", "onUpdate:modelValue"])) : D("", !0),
                            d.type === "checkbox" ? (y(), A(Y, E({ key: 3 }, d.checkBoxAttrs, {
                              list: d.data || [],
                              name: d.key,
                              modelValue: n.value[d.key],
                              "onUpdate:modelValue": (b) => n.value[d.key] = b,
                              label: " "
                            }), null, 16, ["list", "name", "modelValue", "onUpdate:modelValue"])) : D("", !0),
                            d.type === "date" ? (y(), A(H, E({ key: 4 }, d.datePickerAttrs, {
                              name: d.key,
                              modelValue: n.value[d.key],
                              "onUpdate:modelValue": (b) => n.value[d.key] = b,
                              label: " "
                            }), null, 16, ["name", "modelValue", "onUpdate:modelValue"])) : D("", !0)
                          ], 64)) : (y(), W("span", rO, fe(T(d) || a.empty), 1)),
                          a.editable && !l.value.includes(d.key) ? (y(), A(N, {
                            key: 2,
                            onClick: (b) => p(d.key),
                            class: "pro-description-edit",
                            hover: "color"
                          }, {
                            default: x(() => [
                              _(I, { name: "edit" })
                            ]),
                            _: 2
                          }, 1032, ["onClick"])) : D("", !0),
                          a.editable && l.value.includes(d.key) ? (y(), A(N, {
                            key: 3,
                            onClick: (b) => m(d, g),
                            class: "pro-description-edit",
                            hover: "color",
                            theme: "success"
                          }, {
                            default: x(() => [
                              _(I, {
                                size: "18",
                                name: "check"
                              })
                            ]),
                            _: 2
                          }, 1032, ["onClick"])) : D("", !0),
                          a.editable && l.value.includes(d.key) ? (y(), A(N, {
                            key: 4,
                            onClick: (b) => w(d),
                            class: "pro-description-edit",
                            hover: "color",
                            theme: "danger"
                          }, {
                            default: x(() => [
                              _(I, {
                                size: "18",
                                name: "close"
                              })
                            ]),
                            _: 2
                          }, 1032, ["onClick"])) : D("", !0)
                        ])) : D("", !0)
                      ], 64))
                    ]),
                    _: 2
                  }, 1040, ["label"]))
                ], 64))), 128))
              ]),
              _: 3
            }, 16, ["title"])
          ]),
          _: 3
        }, 8, ["data"]))
      ]);
    };
  }
});
const lO = {
  install(e) {
    e.component("ProDescription", nO);
  }
}, oO = {
  install(e) {
    e.component("ProTabs", qa);
  }
}, uO = { class: "page-container" }, iO = {
  key: 0,
  class: "page-container-bread"
}, sO = {
  key: 1,
  class: "page-container-title"
}, cO = { key: 0 }, dO = {
  key: 2,
  class: "page-container-content"
}, fO = { key: 0 }, vO = {
  key: 3,
  class: "page-container-tabs"
}, pO = { class: "page-container-footer" }, mO = /* @__PURE__ */ ae({
  __name: "index",
  props: {
    title: {},
    tabs: {},
    content: {},
    tabKey: {},
    tabsAttrs: { default: () => ({}) },
    hideBread: { type: Boolean },
    hideTitle: { type: Boolean },
    breads: {},
    hideFooter: { type: Boolean },
    tabDefaultValue: {}
  },
  setup(e) {
    const t = e, a = Ie();
    return (r, n) => {
      const o = F("t-breadcrumbItem"), l = F("t-breadcrumb");
      return y(), W("div", uO, [
        t.hideBread ? D("", !0) : (y(), W("div", iO, [
          _(l, null, {
            default: x(() => [
              (y(!0), W(oe, null, Se(t.breads, (u) => (y(), A(o, {
                to: u.path,
                href: u.href,
                target: u.target,
                disabled: u.disabled,
                replace: u.replace
              }, {
                default: x(() => [
                  Fe(fe(u.text), 1)
                ]),
                _: 2
              }, 1032, ["to", "href", "target", "disabled", "replace"]))), 256))
            ]),
            _: 1
          })
        ])),
        !t.hideTitle || t.title ? (y(), W("div", sO, [
          Ee("div", null, [
            te(a).title ? X(r.$slots, "title", { key: 1 }) : (y(), W("span", cO, fe(t.title), 1))
          ]),
          Ee("div", null, [
            X(r.$slots, "actions")
          ])
        ])) : D("", !0),
        t.content || te(a).content ? (y(), W("div", dO, [
          te(a).content ? X(r.$slots, "content", { key: 1 }) : (y(), W("span", fO, fe(t.content), 1))
        ])) : D("", !0),
        t.tabs ? (y(), W("div", vO, [
          _(qa, {
            defaultValue: t.tabDefaultValue,
            tabAttrs: t.tabsAttrs,
            tabs: t.tabs
          }, xe({ _: 2 }, [
            te(a).tabContent ? {
              name: "default",
              fn: x(({ key: u }) => [
                X(r.$slots, "tabContent", { key: u })
              ]),
              key: "0"
            } : void 0
          ]), 1032, ["defaultValue", "tabAttrs", "tabs"])
        ])) : D("", !0),
        Ee("div", pO, [
          X(r.$slots, "footer")
        ])
      ]);
    };
  }
});
const yO = {
  install(e) {
    e.component("PageContainer", mO);
  }
}, gO = [
  So,
  wo,
  Eo,
  To,
  Fo,
  jC,
  Lo,
  FC,
  BC,
  LC,
  KC,
  JC,
  lO,
  oO,
  yO
], _O = {
  install(e) {
    gO.map((t) => {
      e.use(t);
    });
  }
};
export {
  _O as default
};
